以下正确的数组定义语句是( )。
A: unsigned inta[4]={0,1,2,3,4};
B: unsigned inta[ ]=(0,1,2,3,4);
C: unsigned inta[4];
D: unsigned char a[ ]={0,1,2,3,4};
A: unsigned inta[4]={0,1,2,3,4};
B: unsigned inta[ ]=(0,1,2,3,4);
C: unsigned inta[4];
D: unsigned char a[ ]={0,1,2,3,4};
举一反三
- 下面代码的输出结果是() vlist = list(range(5)) print() A: [0, 1, 2, 3, 4] B: 0;1;2;3;4; C: 0,1,2,3,4, D: 0 1 2 3 4
- 以下代码的输出结果是: A: [0,1,2,3,4] B: 0,1,2,3,4, C: 0;1;2;3;4; D: 01234
- 下面代码的输出结果是vlist = list(range(5))for e in vlist: print(e,end=",") A: 0 1 2 3 4 B: 0,1,2,3,4, C: [0, 1, 2, 3, 4] D: 0;1;2;3;4;
- 合法的数组定义是()。 A: inta[3][]={0,1,2,3,4,5}; B: inta[][3]={0,1,2,3,4}; C: inta[2][3]={0,1,2,3,4,5,6}; D: inta[2][3]={0,1,2,3,4,5};
- 执行以下语句后,ls的值是: ls=list(range(4)) A: [0, 1, 2, 3] B: [0,1,2,3,4] C: 0,1,2,3 D: 0,1,2,3,4