下列错误的说明语句是( )。
A: char word[]={‘T’,‘u’,‘r’,‘b’,‘o’,‘0’};
B: char word[]={"Turbo0"};
C: char word[]="Turbo0";
D: char word[]=‘Turbo0’;
A: char word[]={‘T’,‘u’,‘r’,‘b’,‘o’,‘0’};
B: char word[]={"Turbo0"};
C: char word[]="Turbo0";
D: char word[]=‘Turbo0’;
举一反三
- 下列错误的说明语句是( )。 A: char word[]={‘T’,‘u’,‘r’,‘b’,‘o’,‘\0’}; B: char word[]={"Turbo\0"}; C: char word[]="Turbo\0"; D: char word[]=‘Turbo\0’;
- 以下对二维数组a进行正确初始化的是(). A: static char word[]='Turbo\0'; B: static char word[]={'T','u','r','b','o','\0'}; C: static char word[]={"Turbo\0"}; D: static char word[]="Turbo\0";
- 1.下列选项中错误的说明语句是 。 A: char a[]={'t','o','y','o','u','0'}; B: char a[]={"toyou"}; C: char a[]="toyou0"; D: char a[]='toyou0'
- 下列关于带初始赋值的字符数组说明中,错误的是_____。 A: char str[]={'T','u','r','b','o',' ','C','\0'}; B: char str[7]="Turbo C"; C: char str[]="Turbo C"; D: char *str="Turbo C";
- ( )不能对字符串赋初值.A) char str[5]="good!"; B) char str[]="good!";C) char *str="good!"; D) char str[ ]={‘g',‘o',‘o',‘d',‘!',‘0'}; A: char str[5]="good!"; B: char str[]="good!"; C: char *str="good!"; D: char str[ ]={‘g',‘o',‘o',‘d',‘!',‘0'};