若有说明:int a[10];,则对a数组元素的正确引用是
未知类型:{'options': ['', 'a[10]', 'a[5]', 'a[3.5]'], 'type': 102}
未知类型:{'options': ['', 'a[10]', 'a[5]', 'a[3.5]'], 'type': 102}
举一反三
- 关于二维数组的创建,以下做法正确的是:(1)int a[][] =new int[4][5](2)int a[][] =new int[4][]; a[0]=new int[10]; a[1]=new int[20];(3)int a[][]; a=new int[3][]; a[0]=new int[3]; a[1]={1,2};a[2]={1,2,3}; A: (1)(2)(3) B: (1)(2) C: (1)(3) D: (1)
- 以下哪些是合法的二维数组的声明和初始化?A.inta[][]=newint[10,10];B.inta[][]=newint[10][10];C.inta[10][10]=newint[10][10];D.int[][]a=newint[10][10];E.int[]a[]=newint[10][10];
- 若有说明:int a[10];则对a数组元素的正确引用是( ) 。A)a[10] B)a[3.5] C)a(5) D)a[10-10]
- 对于二维数组a[5][10],能如此引用数组元素:a[5][0];
- .若有定义:inta[10],则对数组a元素的正确引用是()。(A)a[10](B)a[3.5](C)a(5)(D)a[10-10] A: a[10] B: a[3.5] C: a(5) D: a[10-10]