下列数组定义语句中:int[]a=new int[3];则定义的数组a占的字节数为( )
查看答案
下列数组定义语句中:double[,]d=new double[4,5];则定义时数组d占的字节数为( )
A. 160
B. 80
C. 240
D. 120
下列程序段执行后:int[].a=1,2,3,4,5;a[4]=a[a[2]];则a[4]的值为( )
A. 2
B. 3
C. 4
D. 5
要定义一个3行4列的单精度型二维数组f,使用的定义语句为( )
A. float f[,].=new float[3,4];
B. float[,]f=new float[3][4];
C. float[,]f;
D. float[,]f=new float[3,4];
语句如下:int[]c1=new int[5];int[]c2={1,2,3,4,5,6,7,8,9,0};数组c1和c2中的元素个数分别为( )
A. 6和10
B. 6和9
C. 5和10
D. 5和9