以下哪些程序能正确编译通过? A: char a='a'; char b=1; char c=08; B: int a='a'; C: long a='\u00FF '; D: char a='\u0FF'; E: char d="d";
以下哪些程序能正确编译通过? A: char a='a'; char b=1; char c=08; B: int a='a'; C: long a='\u00FF '; D: char a='\u0FF'; E: char d="d";
与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";
以下哪些程序能正确编译通过? A: char a='a'; char b=1; char c=08; B: int a='a'; C: long a='\u00FF '; D: char a='\u0FF'; E: char d="d";
以下哪些程序能正确编译通过? A: char a='a'; char b=1; char c=08; B: int a='a'; C: long a='\u00FF '; D: char a='\u0FF'; E: char d="d";
The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?() A: char ch = 65; B: char ch = ’¥65’; C: char ch = ’¥0041’; D: char ch = ’A’; E: char ch = "A";
The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?() A: char ch = 65; B: char ch = ’¥65’; C: char ch = ’¥0041’; D: char ch = ’A’; E: char ch = "A";
无法输出字符串"her"的程序段是( ) A: char a[ ]={'h','e','r','\0'}; puts(a); B: char a[4]={'h','e',0,'r'}; puts(a); C: char a[ ]={'h','e','r',0}; puts(a); D: char a[4]={'h','e','r','0'-48}; puts(a);
无法输出字符串"her"的程序段是( ) A: char a[ ]={'h','e','r','\0'}; puts(a); B: char a[4]={'h','e',0,'r'}; puts(a); C: char a[ ]={'h','e','r',0}; puts(a); D: char a[4]={'h','e','r','0'-48}; puts(a);
9.下面能正确进行字符串赋值操作的是( )。A)char s[5]={“ABCDE”};B)char s[5]={‘A’,’B’,’C’,’D’,’E’};C)char *s ; s=”ABCDE” ;D)char *s; scanf(“%s”,s) ; A: char s[5]={“ABCDE”}; B: char s[5]={‘A’,’B’,’C’,’D’,’E’}; C: char *s ; s=”ABCDE” ; D: char *s; scanf(“%s”,s) ;
9.下面能正确进行字符串赋值操作的是( )。A)char s[5]={“ABCDE”};B)char s[5]={‘A’,’B’,’C’,’D’,’E’};C)char *s ; s=”ABCDE” ;D)char *s; scanf(“%s”,s) ; A: char s[5]={“ABCDE”}; B: char s[5]={‘A’,’B’,’C’,’D’,’E’}; C: char *s ; s=”ABCDE” ; D: char *s; scanf(“%s”,s) ;
【单选题】下列数组定义语句中,正确的是( ) A. char a[][]={'a','b','c','d','e','f'}; B. char a[2][3]='a','b'; C. char a[][3]={'a','b','c','d','e','f'}; D. char a[][]={{'a','b','c','d','e','f'}};
【单选题】下列数组定义语句中,正确的是( ) A. char a[][]={'a','b','c','d','e','f'}; B. char a[2][3]='a','b'; C. char a[][3]={'a','b','c','d','e','f'}; D. char a[][]={{'a','b','c','d','e','f'}};
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];
语句char m[]=a,b,c,d,e,f与char n[]=abcdef
语句char m[]=a,b,c,d,e,f与char n[]=abcdef
合法的数组定义是( ) A: char a={'U', 'V', 'W','X', 'Y'}; B: char a[5]={"A","A", "A","A","A"}; C: char a[6]= {'A','B','C','D','E'}; D: char a[5]= "ABCDE";
合法的数组定义是( ) A: char a={'U', 'V', 'W','X', 'Y'}; B: char a[5]={"A","A", "A","A","A"}; C: char a[6]= {'A','B','C','D','E'}; D: char a[5]= "ABCDE";