若要定义一个具有5个元素的double数组,以下错误的定义语句是
A: double a[5]=﹛0﹜;
B: double b[]={0,0,0,0,0};
C: double c[2+3];
D: double d[5]={1,2,3,4,5,6,7};
A: double a[5]=﹛0﹜;
B: double b[]={0,0,0,0,0};
C: double c[2+3];
D: double d[5]={1,2,3,4,5,6,7};
举一反三
- 06210041:以下不正确的数组定义语句是( )。 A: double x[5]={2.0, 4.0, 6.0, 8.0, 10.0}; B: int y[5]={0, 1, 3, 5, 7, 9}; C: char ch1[ ]={'1', '2', '3', '4', '5'}; D: char ch2[ ]={'x10', 'xa', 'x8'};
- 以下不正确的一维数组定义语句是( )。 A: int y[5]={0, 2, 4, 6, 8, 10, 12}; B: double x[5]={2.0, 4.0, 6.0, 8.0, 10.0}; C: char c1[5]={ '1' , '2' , '3' , '4' , '5'}; D: char c2[50 ]="C Program";
- 下列定义数组的选项中,不正确的是() A: double x[5]={1, 2, 3, 4, 0.5}; B: int x[5]={0, 1, 3, 5, 7, 9}; C: char c[]={'1', 'a', '5', 't'}; D: char d[]={'\x10', '\xa', '\26'};
- 【单选题】Which of the following matrices does not have the same determinant of matrix B: [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -1, 0, -9,-5] A. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 0; -1, 0, -9, -5] B. [1, 3, 0, 2; -2, -5, 7, 4; 1, 0, 9, 5; -1, 0, -9, -5] C. [1, 3, 0, 2; -2, -5, 7, 4; 3, 5, 2, 1; -3, -5, -2, -1] D. [1, 3, 0, 2; -2, -5, 7, 4; 0, 0, 0, 1; -1, 0, -9, -5]
- 下面正确的数组定义语句是()。 A: int y[1][4]={1,2,3,4,5}; B: float x[3][]={{1},{2},{3}}; C: long s[2][3]={{1},{1,2}}; D: double t[0][3]={0};