以下语句中错误的是()
A: int x[][3] = {0};
B: int x[2][3] = {{1,2}, {3,4}, {5, 6}};
C: int x[][3] = {{1,2,3}, {4,5,6}};
D: int x[2][3] = {1,2,3,4,5,6};
A: int x[][3] = {0};
B: int x[2][3] = {{1,2}, {3,4}, {5, 6}};
C: int x[][3] = {{1,2,3}, {4,5,6}};
D: int x[2][3] = {1,2,3,4,5,6};
举一反三
- 以下数组定义中,错误的是( )。 A: int<br/>x[2][3] ={1, 2, 3, 4, 5, 6} ; B: int<br/>x[][3] ={0} ; C: int<br/>x[][3] ={{1, 2, 3} , {4, 5, 6} } ; D: int<br/>x[2][3] ={{1, 2} , {3, 4} , {5, 6} } ;
- 下面错误的语句是( )。 A: int a[2][3] = {1, 2, 3, 4, 5, 6}; B: int a[2][3] = {{1, 2, 3}, {4, 5, 6}}; C: int a[ ][ ] = {{1, 2, 3}, {4, 5, 6}}; D: int a[ ][3] = {{1, 2, 3}, {4, 5, 6}};
- 以下数组定义中错误的是: int x[2][3]={0};|int x[2][3]={1,2,3,4,5,6};|int x[2][3]={{1,2},{3,4},{5,6}};|int x[][3]={{1,2,3},{4,5,6}};
- 以下数组定义中错误的是() A: int X[2][3]={{1,2},{3,4},{5,6; B: int x[][3]={0); C: int 4][3]={(1,2,3},{4,5,6; D: int 对2][3]={1,2,3,4,5,6};
- 下列对二维数组的正确定义是( )。 A: int a[2, 3] = {1, 2, 3, 4, 5, 6}; B: int a[][] = {1, 2 , 3, 4, 5, 6}; C: int a[2][] = {1, 2, 3, 4, 5, 6}; D: int a[][3] = {1, 2, 3, 4, 5, 6};