若有以下程序
#include
main()
{ char a[20], b[ ]="The sky is blue."; int i;
for (i=0; i<10; i++) scanf("%c", &a[i]);
a[i]='\0';
gets(b);
printf("%s%s\n", a,b);
}
执行时若输入:
Fig flower is red. <回车>
则输出结果是
- A.Fig flower is red.is blue.
- B.Fig flower is red.
- C.Fig floweris red.
- D.Fig floweris
热度🔥1,480
解析:打开微信小程序查看本题解析