题目内容

Which one of the following array Initializations is correct? ( )

A. int a[2][3]={ {1,2},{3,4},{5,6} };
B. int a[ ][3]={1,2,3,4,5,6 };
C. int a[2][ ]={1,2,3,4,5,6};
D. int a[2][ ]={ {1,2},{3,4}};

查看答案
更多问题

Which one is keyword? ( )

A. swicth
B. character
C. Default
D. case

n is an int variable. Which statement do not change the value of variable n? ( )

A. n=getchar();
B. n>0?n++:n--;
C. printf("%d", n+2);
D. n += 2;

#include main() { int i=3; switch ( ) { case 1: i*=1; case 2: i*=2; case 3: i*=3; default : i*=4; } printf("i=%d\n",i); }

A. (=36)

Three basic structures of C language program are ( ).

A. Sequential structure, selection structure, loop structure
B. Recursive structure, selection structure, loop structure
C. Nested structure, recursive structure, sequential structure
D. Nested structure, selection structure, loop structure

答案查题题库