题目内容

Which one of the following descriptions is correct? ( )

A. Function definitions cannot be nested, but function calls can be nested.
B. Function definitions can be nested, but function calls cannot be nested.
C. Both function definitions and function calls can be nested.
D. Neither function definitions nor function calls can be nested.

查看答案
更多问题

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)

答案查题题库