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

admin2010-09-05  29

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

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

答案B

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

最新回复(0)