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

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


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題定義一個4個元素的一維整型數組,()是正確的。

A.floata[4];
B.inta[]={1,2,3,4,5};
C.inta[]={1,2,3};
D.inta[4]={1};