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