int index=1;int foo[]=new int[3];int bar=foo[index];int baz=bar+index;经过以上代码后,baz的值是多少?( )
A. baz值为 0
B. baz值为1
C. baz值为2
D. 程序运行时抛出异常
E. 代码不能编译
查看答案
数组定义int[][]num={{7,8,1,2,3,4},{9,10,11,12,30,50,60},{16,20,70},{0}};,则num.length的值为()
A. 3
B. 4
C. 6
D. 7
设有数组定义int[][] x={{9, 5, 3},{9, 4, 5},{6},{7}},则x.length的值为()
A. 3
B. 4
C. 6
D. 7
设有数组定义int[][] x= {{1, 2, 3,4,5, 6, 7}, {3, 4, 5}, {6, 7, 8, 9}, {0, 1, 2, 3, 4, 5, 6}};,则x.length的值为()
A. 3
B. 4
C. 6
D. 7
为使下列代码正常运行,应该在下画线处填入的选项是____。( )intnumbers[] =new int[N];for(int i=0; i
A. size
B. length
C. dimension
D. measurement