單項選擇題

以下能正確進行字符串賦值或賦初值的語句組是()

A.charstr[3]="key";
B.charstr[3]={’k’,’e’,’y’};
C.charstr[4];str="key";
D.char*s;s="key";

微信掃碼免費搜題