单项选择题

若已知char str[20];,有语句cin>>str;
当输入为;
This is a program
所得的结果是str=( )。

A.This is a program
B.This
C.This is
D.This is a