[单选题]

以下不能正确进行字符串赋值初值的语句是( )。

A.char str[5]="good!";

B.char str[]="good!";

C.char*str="good!";

D.char str[5]={'g','o','o','d'};

参考答案与解析: