题目内容

The valid range of global variables defined in a source program file is ( ).

A. Full scope of this source program file
B. All source program files of a C program
C. All ranges in function
D. From defining the location of the variable to the end of the source program file

查看答案
更多问题

You can omit the length of a column when defining a 2D array and initializing it.

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,

答案查题题库