网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若定义chara[80]=”windows”,b[]=”95”;语句printf(”%s”,strcat(a,b));输出结果是()

  • A、windows95
  • B、windows
  • C、95
  • D、95windows

参考答案

更多 “若定义chara[80]=”windows”,b[]=”95”;语句printf(”%s”,strcat(a,b));输出结果是()A、windows95B、windowsC、95D、95windows” 相关考题
考题 若变量已正确定义,则以下语句的输出结果是s=32; s ^ =32; printf("%d",s);A)-1B)0C)1D)32

考题 若变量已删除正确定义,则以下语句的输出结果是______。 s=32; s^=32; printf("%d",s);A.-1B.0C.1D.32

考题 定义int a=5,b=20;若执行语句printf("%d\n",++a*--b/5%13);后,输出的结果为 【6】 。

考题 若有以下定义和语句: char*s1="12345",*s2="1234"; printf("%d\n",strlen(strcpy(s1,s2)));则输出结果是______。A.4B.5C.9D.10

考题 以下程序的输出结果是()includemain(){chars1[]="123",s2[]="abc",ss[20]="010";strc 以下程序的输出结果是 ( ) #include<string.h> main() {char s1[]="123",s2[]="abc",ss[20]="010"; strcat(ss+1,strcpy(s2,s1)); printf("%s\n",ss); }A.10123B.0abcC.1123D.01abc

考题 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1SX 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1B.0C.4D.3

考题 以下程序includemain(){char a1[80],a2[80],*s1=a1,*s2=a2; gets(s1);gets(s2) if(!s 以下程序 #include<string.h> main() { char a1[80],a2[80],*s1=a1,*s2=a2; gets(s1);gets(s2) if(!strcmp(s1,s2))printf("*"); else printf("#"); printf("%d\n",strlen(strcat(s1,s2))); } 如果从键盘上输入: book<回车> book<空格><回车> 则输出结果是( )A.*8B.#9C.#6D.*9

考题 有如下定义:charstr[3][2]={’a’,’b’,’c’,’\0’,’e’,’f’};则语句:printf("%s",str[0]);的输出结果是() A.abB.abcefC.abc\0D.abc

考题 若有定义和语句 ( ) char s[10];s="abcd";printf("%s\n",s); 则结果是(以下μ代表空格)A.输出abcdB.输出aC.abcdμμμμμD.编译不通过

考题 若有以下定义语句: char * sl="12345", * s2="1234"; printf("%d"n",strlen(strcpy(s1,s2))); 则输出结果是 ( )A.4B.5C.9D.10

考题 若变量已正确定义,则以下语句的输出结果是______。 s=32;s^=32;printf("%d",s);A.-1B.0C.1D.32

考题 有下列程序: includestdi0.hvoidfun(char*s){while(*s){if(*s%2==(1)printf(%Cstdi0.hvoidfun(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

考题 若有以下定义和语句,则输出结果是(口代表空格)______。char s[10]; s="abcd"; printf("%s\n",s);A.输出abcdB.输出aC.输出abcd口口口口口D.编译不通过

考题 有下列程序: #includestdi0.h voidfun(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

考题 若定义了charch[]={″abc\0def″},*p=ch;则执行printf(″%c″,*p+4);语句的输出结果是() A.defB.dC.eD.0

考题 若有定义和语句:struct student { int num; char name[10]; float score;} s[5]={{1,"lili",98.5},{9,"xiaohua",66}},*p=s;printf("%d",*p++);输出结果是1。( )此题为判断题(对,错)。

考题 若有以下定义语句:chars[10],s="abcd”;printf(“%s/n”,s);则运行结果是()A、输出abcdB、输出aC、输出acbdD、编译不通过

考题 有如下定义:charstr[3][2]={’a’,’b’,’c’,’/0’,’e’,’f’};则语句:printf("%s",str[0]);的输出结果是()A、abB、abcefC、abc/0D、abc

考题 若有以下定义语句:chars[10];s=”1234”;printf(“%s/n”,s);则运行结果是:()A、输出1234B、输出1C、输出4D、编译不通过

考题 若定义chara[80]=”95”,b[]=”windows”;,语句printf(”%s”,strcpy(a,b));的输出结果为()A、windows95B、windowsC、95D、95windows

考题 若有定义和语句: char s[10]:s=""abcd"";printf(""%s/n"",s); 则结果是(以下u代表空格)()A、输出abcdB、输出aC、输出abcduuuuuD、编译不通过

考题 若定义了charch[]={″abc/0def″},*p=ch;则执行printf(″%c″,*p+4);语句的输出结果是()A、defB、dC、eD、0

考题 单选题若有以下定义和语句:char s1[10]=abcd!, *s2=n123\\;printf(%d%d, strlen(s1), strlen(s2));则输出结果是(  )。A 55B 105C 107D 58

考题 单选题若有定义和语句: char s[10]:s=""abcd"";printf(""%s/n"",s); 则结果是(以下u代表空格)()A 输出abcdB 输出aC 输出abcduuuuuD 编译不通过

考题 单选题有以下程序(strcat函数用以连接两个字符串):#include #include main(){ char a[20]=ABCD\0EFG\0, b[]=IJK; strcat(a,b); printf(%s,a);}程序运行后的输出结果是(  )。A ABCDE\0FG\0IJKB ABCDIJKC IJKD EFGIJK

考题 单选题若定义了charch[]={″abc/0def″},*p=ch;则执行printf(″%c″,*p+4);语句的输出结果是()A defB dC eD 0

考题 单选题有以下程序: #include main() {  chara[30],b[30];  scanf(%s,a);  gets(b);  printf(%s%s,a,b); } 程序运行时若输入: howareyou?Iamfine回车 则输出结果是(  )。A how are you? 换行I am fineB how换行 are you? I am fineC how are you? I am fineD how are you?