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
The default storage class for formal parameters is ( ).
A. auto
B. register
C. static
D. extern
Which one is illegal identifier? ( )
A. s_name
B. _e
C. printf
D. 3DS