题目内容

#includemain() { int a=1, b=2; for(;a<8;a++) {b+=a; a+=2; } printf("%d,%d\n",a,b); }The output of the program is ( ).

A. 9,18
B. 8,11
C. 7,11
D. 10,14

查看答案
更多问题

The switch statement with different functions from the statement if (a == 1) a = b; else a ++; is ( ).

A. switch(a) { case 1:a=b;break; default : a++; }
B. switch(a==1) { case 0:a=b;break; case 1: a++; }
C. switch(a) { default:a++;break; case 1:a=b; }
D. switch(a) { default:a++;break; case 1:a=b; }

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.

答案查题题库