单项选择题

以下选项中,属于合法语句的是( )。

A.char nm[10]; nm="C Program";
B.char str1[10]="computer",str2[10]; str2=str1;
C.char str[7]="siring!";
D.char sp[]="Hello!";