题目内容

According to the declaration "int x=10;", what is the value of the expression "x-=x+x"?( )

A. 10
B. 20
C. 0
D. -10

查看答案
更多问题

What is the value of "i" after the following program segment is executed ?( ) int i; for(i=0; i<10; i=++) if (i<5) break;

A. 1
B. 0
C. 5
D. 10

Which one of the following declarations of array "x" is correct? ( )

A. #define N 10 int x[N];
B. int N=10; int x[N];
C. int x[0…10];
D. int x[ ];

What is the output after the following program segment is executed ? ( ) int a=1,k=4,m=6,*p1=&k,*p2=&m; a=p1==&m; printf("%d\n",a);

A. 6
B. 1
C. 0
D. uncertain value

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.

答案查题题库