以下错误的定义语句是
A)int x[][3]={{0},{1},{1,2,3}};
B)int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
C)int x[4][]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
D)int x[][3]={1,2,3,4};
第1题:
以下错误的定义语句是()。
A.int x[][3]={{0},{1},{1,2,3}};
B.int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
C.int x[4][]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
D.int x[][3]={1,2,3,4};
第2题:
下面哪个语句(初始化数组)是不正确的:()
A.int x[3] = {1,2,3};
B.int x[] = {1,2,3};
C.int[] x = {1,2,3};
D.int x[] = new int[]{1,2,3};
第3题:
以下错误的定义语句是 。
A.int x[ ][3]={{0},{1},{1,2,3}};
B.int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
C.int x[4][ ]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
D.int x[ ][3]={1,2,3,4};
第4题:
下面哪个语句(初始化数组)是不正确的:()
A.int x[] = {1,2,3};
B.int x[3] = {1,2,3};
C.int[] x = {1,2,3};
D.int x[] = new int[]{1,2,3};
第5题:
2、下面哪个语句(初始化数组)是不正确的:()
A.int x[3] = {1,2,3};
B.int x[] = {1,2,3};
C.int[] x = {1,2,3};
D.int x[] = new int[]{1,2,3};