问题:
[单选] 有以下程序#include<stdio.h>
main( )
{char a[30],b[30];
scanf("%S",a);
gets(b);
printf("%s%s",a,b);
}
程序运行时若输入:
how are you? I am fine<回车>
则输出结果是( )。
A . how are you? I am fine
B . how are you? I am fine
C . how are you? I am fine
D . how are you?
参考答案:B
参考解析:
此题主要考查scanf函数和gets函数的区别。答案为B。