题目内容

有如下程序段:char s1[40]=”China”,s2[20]=”Jiangsu”,s3[20]=”Nanjing”;strcat(s1, strcpy(s2,s3));printf(“%s”,s1);执行该程序段后的输出是________。

A. ChinaJiangsuNanjing
B. ChinaJiangsu
C. JiangsuNanjing
D. ChinaNanjing

查看答案
更多问题

若有以下定义,则对字符串的操作错误的是___________。char s[15]=”computer”,t[]=”games”;

A. strcpy(t,s);
B. printf("%d",strlen(s));
C. strcat(s,t);
D. scanf("%s",t);

以下程序运行时,输出到屏幕的结果是__________。#includevoid fun(char s[]){int i, j;for(i=j=0; s[i]!='\0'; i++){if(s[i]>='A' && s[i]<='Z')s[j++] = s[i]+32;}s[j]='\0';}int main(){char ss[20]="GooD LucK!";fun(ss);printf("%s\n",ss);return 0;}

A. goodluck
B. gl
C. oouc
D. gdlk

目前,我国进入了生态文明建设新时代,开启了生活垃圾的全程“四步走”管理新模式。新的生活垃圾分类方法“四分法”为和其他垃圾。

[音频]W: Is everything to your(1), sir?G: Yes, everything is good.W:(2)?G: Yes.(3).W:(4), sir?G: Would you please(5)some?W: (6)haw jellies. They are very(7).G: That will be(8)! Id like to try some. Thank you.

答案查题题库