下列各个选项中对字符数组赋字符串的语句中,错误的是( )。

admin2009-01-15  24

问题 下列各个选项中对字符数组赋字符串的语句中,错误的是(    )。

选项 A、char s[10];s="program";
B、char s[]="program";
C、char s[10]="program";
D、char s[10]; strcpy(s,"program");

答案1

解析
转载请注明原文地址:https://kaotiyun.com/show/M4kp777K
0

随机试题
最新回复(0)