问题
单项选择题
以下能正确进行字符串赋值、赋初值的语句是______。
A.char s[5]:{'a','e','i','o','u'};
B.char *s; s="good";
C.char s[5]="good";
D.char s[5]; s="good";
答案
参考答案:C
以下能正确进行字符串赋值、赋初值的语句是______。
A.char s[5]:{'a','e','i','o','u'};
B.char *s; s="good";
C.char s[5]="good";
D.char s[5]; s="good";
参考答案:C