题目内容

If there is the following definition: int x[10],*pt=x; The correct reference to an x array element is ( )

A. *&x[10]
B. *(x+3)
C. *(pt+10)
D. pt+3

查看答案
更多问题

Address is vividly called "pointer".

The variable that holds the address of the variable is a pointer variable.

int a,b; int *pointer_1,*pointer_2; float *pointer_3; The following assignment is correct ( ).

A. pointer_3=2000;
B. *pointer_1=&a;
C. pointer_1=&a;
D. pointer_3=&a;

#includemain() { 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); }The output of the program is ( ).

A. 1,2,1,2
B. 1,2,2,1
C. 2,1,2,1
D. 2,1,1,2

答案查题题库