下列各个选项中对字符数组赋字符串的语句中 错误的是()。A.char s[10];s=program;B.char s[]=p
数组,字符串,语句
已帮助 人
下列各个选项中对字符数组赋字符串的语句中,错误的是()。
A.char s[10];s="program";
B.char s[]="program";
C.char s[10]="program";
D.char s[10]; strcpy(s,"program");
请帮忙给出正确答案和分析,谢谢!
