Let’s(has) broccoli, It's good for us.
(25)有以下程序#includevoid fun(char *s){while(*s){ if(*s%2==0) printf(“%c”,*s);s++;}}main(){ char a[]={“good”};fun(a);printf(“\n”);}注意:字母a的ASCII码值为97,程序运行后的输出结果是A)d B)go C)god D)good
点击查看答案
3.—Let's play soccer.—No,it's _________'Let’s watch TV.A.interestingB.funC.boringD.good
以下能将字符串“good!”正确地存放在字符数组s中,或使指针;能指向这个字符串的是(33)。A.char s[4]={'g','o','o','d','!')B.char s[5];s="good!";C.int s[5]="good!";D.char *s;s="good!:;
能正确进行字符串赋值、赋初值的语句组是()。A、chars[5]={a,e,i,o,u};B、char*s;s=“good!“;C、chars[5]=“good!“;D、chars[5]=“good!“;
设s1="GOOD",s2="-",s3="BYE!",则s1、s2和s3连接后的结果是()A、"GOOD-BYE!"B、"GOODBYE!"C、"GOODBYE!"D、"GOODBYE"
下列哪个程序段可能导致错误?A.String s="hello"; String t= "good"; String k=s+ t;B.String s="hello"; String t; t=s[3]+"one";C.String s="hello"; String standard=s. toUpperCaseD.String s="hello"; String t =s+ "good"
有下列程序: includevoidfun(char*s){while(*s){if(*s%2==(1)printf("%C&q有下列程序:#includevoidfun(char*s){while(*s){if(*s%2==(1)printf("%C",*s);s+十:}}voidmain( ){chara[]={"good");fun(a);printf("n");}注意:字母a的ASCIl码值为97,程序运行后的输出结果是( )。A.dB.goC.godD.good