若要求从键盘读入含有空格字符的字符串,应使用函数

admin2013-02-23  21

问题 若要求从键盘读入含有空格字符的字符串,应使用函数   

选项 A、getc()     
B、gets()
C、getchar()     
D、scanf()

答案B

解析  scanf()语句用“空格”区别不同的字符串;getc()与getchar()语句不能用于字符串的读入。
转载请注明原文地址:https://kaotiyun.com/show/AaPp777K
0

最新回复(0)