题目内容

The elements of a two-dimensional array are stored in memory in rows.

查看答案
更多问题

If there is a definition statement: int a[3][6];, the 10th element of a array is ( ).

A. a[0][4]
B. a[1][3]
C. a[0][3]
D. a[1][4]

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.

答案查题题库