According to the declaration "double x[5]={1,_2},_*p=x;", which one is incorrect reference to an array element? ( )
A. *p
B. x[5]
C. *(p+1)
D. *x
查看答案
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