以下数组定义中,正确的是( )
A: int a[2][3]={1,2,3,4,5,6,7};
B: int a[][]={{1,2,3},{4,5,6},{7,8,9}};
C: int a[2][]= {1,2,3,4,5,6};
D: int a[][4]= {6};
A: int a[2][3]={1,2,3,4,5,6,7};
B: int a[][]={{1,2,3},{4,5,6},{7,8,9}};
C: int a[2][]= {1,2,3,4,5,6};
D: int a[][4]= {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}};
- 以下对二维数组进行正确初始化的是( )。 (1.0) A: int a[2][3] = {{1, 2}, {3, 4}, {5, 6; B: int a[][3] = {1, 2, 3, 4, 5, 6}; C: int a[2][] = {1, 2, 3, 4, 5, 6}; D: int a[2][] = {{1, 2}, {3, 4;
- 以下数组定义中,正确的是( ) A: int a[2][3]={1,2,3,4,5,6,7}; B: int a[][]={{1,2,3},{4,5,6},{7,8,9}}; C: int a[2][]= {1,2,3,4,5,6}; D: int a[][4]= {6};
- 以下数组定义中,正确的是( ) A: int a[2][3]={1,2,3,4,5,6,7}; B: int a[][]={{1,2,3},{4,5,6},{7,8,9}}; C: int a[2][]= {1,2,3,4,5,6}; D: int a[][4]= {6};
- 以下能对二维数组a进行正确说明和初始化的语句是____。 A: int a( )(3)={ ( 1, 0, 1 ), ( 2, 4, 5 ) }; B: int a[2][3]={ { 3, 2, 1 }, { 5, 6, 7 } }; C: int a[][3]={ { 3, 2, 1 }, { 5, 6, 7 } }; D: int a[][3]={ ( 1, 0, 1 ), ( 2, 4, 5 ) };