If conditional expression:(EXP)?i++:j--;which one is completely equivalent to (EXP) ?
A. (EXP==0)
B. (EXP!=0)
C. (EXP==1)
D. (EXP!=1)
查看答案
The conditional expression of if statement must be a logical expression.
Multiple cases in a switch statement can share a group of execution statements.
Perform the following procedure, input 3 and the output is ( ). #include “stdio.h” main() { int k; scanf(”%d”, &k); switch(k) { case 1: printf(”%d\n”, k++); case 2: printf(”%d\n”, k++); case 3: printf(”%d\n”, k++); case 4: printf(”%d\n”, k++); break; default: printf(”Full!\n”); }}
A. 3
B. 4
C. 34
D. 44
while and do while statements have the same function.