下列二维数组初始化语句中,正确且与语句inta[][3]={1,2,3,4,5}等价的是()。A)inta[2][]={{1,2,3},{4,5));B)inta[][3]={1,2,3,4,5,0};C)inta[][3]={{1,0},{2,0},{3,0)};D)inta[2]={{1,2,3),{4,5,6)};
举一反三
- 以下不能对二维数组a进行正确初始化的语句是()。(A)inta[2][3]={0};(B)inta[][3]={{1,2},{0}};(C)inta[2][3]={{1,2},{3,4},{5,6}};(D)inta[][3]={1,2,3,4,5,6}; A: inta[2][3]={0}; B: inta[][3]={{1,2},{0}}; C: inta[2][3]={{1,2},{3,4},{5,6}}; D: inta[][3]={1,2,3,4,5,6};
- 下列二维数组初始化语句中,正确且与语句inta[][3]={1,2,3,4,5}等价的是()。A)inta[2][]={{1,2,3},{4,5));B)inta[][3]={1,2,3,4,5,0};C)inta[][3]={{1,0},{2,0},{3,0)};D)inta[2]={{1,2,3),{4,5,6)};
- 下列二维数组初始化语句中,正确且与语句inta[][3]={1,2,3,4,5}等价的是()。A)inta[2][]={{1,2,3},{4,5));B)inta[][3]={1,2,3,4,5,0};C)inta[][3]={{1,0},{2,0},{3,0)};D)inta[2]={{1,2,3),{4,5,6)};
- 若有定义语句:inta[][3]={1,2,3,4,5,6,7};则与该语句等价的是() A: inta[][3]={{1,2},{3,4},{5,6,7}}; B: inta[][3]={{1,}{2,3,4},{5,6,6}}; C: inta[][3]={{1,2,3},{4,5,6},{7}}; D: inta[][3]={{1,2,3},{4,5},{6,7}};
- A=[1,2,3;4:6;7:9]; C=[A;[10,11,12]], D=C(1:3,[2 3]) E=C(2,[1 2]) E=(__________________)