以下不能正确进行字符串初始化的语句是: A: char str[5] = "good!"; B: char str[5] = {'g', 'o', 'o', 'd', '!'}; C: char str[] = {'g', 'o', 'o', 'd', '!'}; D: char str[] = "good!"; E: char str[8] = "good!"; F: char *str = "good!"; G: char str[8] = {'g', 'o', 'o', 'd', '!'};
以下不能正确进行字符串初始化的语句是: A: char str[5] = "good!"; B: char str[5] = {'g', 'o', 'o', 'd', '!'}; C: char str[] = {'g', 'o', 'o', 'd', '!'}; D: char str[] = "good!"; E: char str[8] = "good!"; F: char *str = "good!"; G: char str[8] = {'g', 'o', 'o', 'd', '!'};
合法的数组定义是( ) 。 A: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, 0}; B: char s = "string"; C: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, ‘\0’};<br>char a[] = "string";
合法的数组定义是( ) 。 A: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, 0}; B: char s = "string"; C: char a[ ] = {‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, ‘\0’};<br>char a[] = "string";
( )不能对字符串赋初值.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'};
( )不能对字符串赋初值.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'};
char[] chrArray={ 'a', 'b', 'c', 'd', 'e', 'f', 'g'}; char chr=chrArray[6];
char[] chrArray={ 'a', 'b', 'c', 'd', 'e', 'f', 'g'}; char chr=chrArray[6];
下列不能正确进行字符串初始化的是( )。 A: char str[8] = {'g', 'o', 'o', 'd', '!','\0'}; B: char str[8] = "good!"; C: char *str = "good!"; D: char str[] = {'g', 'o', 'o', 'd', '!'};
下列不能正确进行字符串初始化的是( )。 A: char str[8] = {'g', 'o', 'o', 'd', '!','\0'}; B: char str[8] = "good!"; C: char *str = "good!"; D: char str[] = {'g', 'o', 'o', 'd', '!'};
下面代码中能够正确编译的有() A: float f=1.3; B: double D=4096.0; C: byte b=257; D: String s=”1″ E: int i=10; F: char c=”a”;G.char C=4096;H.boolean b=null;
下面代码中能够正确编译的有() A: float f=1.3; B: double D=4096.0; C: byte b=257; D: String s=”1″ E: int i=10; F: char c=”a”;G.char C=4096;H.boolean b=null;
以下不能正确进行字符串赋初值的语句是( )。 A、char str[5]= "good!"; B、char *str="good!"; C、char str[]="good!"; D、char str[5]={'g', 'o','o', 'd'}; A: char *str="good!"; B: char str[5]={'g', 'o','o', 'd'}; C: char str[]="good!"; D: char str[5]= "good!";
以下不能正确进行字符串赋初值的语句是( )。 A、char str[5]= "good!"; B、char *str="good!"; C、char str[]="good!"; D、char str[5]={'g', 'o','o', 'd'}; A: char *str="good!"; B: char str[5]={'g', 'o','o', 'd'}; C: char str[]="good!"; D: char str[5]= "good!";
在以下字符串String的赋值运算中,错误的是( )。? char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};|char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'};|char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'};|char str[10]= "String";
在以下字符串String的赋值运算中,错误的是( )。? char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};|char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'};|char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'};|char str[10]= "String";
执行下面的初始化语句,( )保存的不是字符串。 A: char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'}; B: char str[10]= "String"; C: char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'}; D: char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};
执行下面的初始化语句,( )保存的不是字符串。 A: char str[10]= { 'S' ,'t', 'r' ,'i','n', 'g','\0'}; B: char str[10]= "String"; C: char str[6]= { 'S' ,'t', 'r' ,'i','n', 'g'}; D: char str[]= { 'S' ,'t', 'r' ,'i','n', 'g',0};
与char string[]={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";
与char string[]={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";