合法的数组定义是________。
A: int a[] = "language";
B: int a[5] = {0,1,2,3,4,5};
C: char a = "string";
D: char a[] = {"0,1,2,3,4,5"};
A: int a[] = "language";
B: int a[5] = {0,1,2,3,4,5};
C: char a = "string";
D: char a[] = {"0,1,2,3,4,5"};
举一反三
- 以下能正确定义一维数组的选项是( )。 A: int a[5]={0,1,2,3,4,5}; B: char a[]={′0′,′1′,′2′,′3′,′4′,′5′,′\0′}; C: char a={′A′,′B′,′C′}; D: int a[5]="0123";
- 合法的数组定义是________。 A: int a[] = "language"; B: int a[5] = {0,1,2,3,4,5}; C: char a = "string"; D: char a[] = {"0,1,2,3,4,5"};
- 合法的数组定义是( )。 A: char a[]={"0,1,2,3,4,5"}; B: char a[]="string" C: int a[5]={0,1,2,3,4,5}; D: int a[ ]= "language"
- 合法的数组定义是( )。 A: char a[]={"0,1,2,3,4,5"}; B: char a[]="string" C: int a[5]={0,1,2,3,4,5}; D: int a[ ]= "language"
- 合法的数组定义是________。 A: int a[] = "language"; B: int a[5] = {0,1,2,3,4,5}; C: char a = "string"; D: char a[] = {"0,1,2,3,4,5"};