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

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

A.getc()

B.gets()

C.getchar()

D.scanf()

正确答案是B