题目内容

main() { int a[4][4]={{1,4,3,2,},{8,6,5,7,},{3,7,2,5,},{4,8,6,1,}},i,k,t; for(i=0;i<3;i++) for(k=i+1;k<4;k++) if(a[i][i]

A. 6,2,1,1,
B. 6,4,3,2,
C. 1,1,2,6,
D. 2,3,4,6,

查看答案
更多问题

You can use subscript method (such as a[3]) or pointer method to reference array elements.

Pointer variables can point to variables, but not array elements.

If the initial value of p is & a[0], then p+I and a+I are the addresses of array elements a[i]

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

答案查题题库