问题详情
以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是()。
A、char s[10]=="abcdefg";
B、char t[]="abcdefg",*s=t;
C、char s[10];s="abcdefg";
D、char s[10];strcpy(s,"abcdefg");