If defined: int a[3][4]={{1,2},{0},{4,5,8,12}}; After initialization,The initial values of a[1][2],a[2][2] are______ ,______
查看答案
If there is a statement,int a=4, *pt=&a; The following set of options that represent addresses are ( )
A. a , pt ,*&a
B. &*a, &a, *pt
C. *&pt, *pt, &a
D. &a, &*pt , pt
There are the following procedures: int main(void) { int m=1,n=2,*p=&m,*q=&n,*r ; r=p; p=q; q=r; printf("%d,%d,%d,%d\n",m,n,*p,*q); return 0; } The output of the program after running is ( ).
A. 1,2,1,2
B. 1,2,2,1
C. 2,1,2,1
D. 2,1,1,2
If there are the following definitions:int a[10], *p=a;,Then p+5 represents ( ).
A. The address of element a[5]
B. The value of element a[5]
C. The address of element a[6]
D. The value of element a[6]
The running result of the following program is ( ). int main(void) { char *s1="AbDeG"; char *s2="AbdEg"; s1+=2; s2+=2; printf("%d\n",strcmp(s1,s2)); return 0; }
A. Positive number
B. negative number
C. 0
D. Uncertain value