单项选择题

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

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