单项选择题

当用户要求输入的字符串中含有空格时,应使用的输入函数是( )。

A) getchar()
B) scanf()
C) gets()
D) getc()