首页 › 答案 › 题库 › 知到智慧树 › 未分类

C语言的以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是()

C语言的以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是()
A.char s[10]= "hello "
B.char t[]="hello",*s=t
C.char s[10]; strcpy(s, "hello")
D.char s[10]; s= "hello"
正确答案:char s[10]; s= "hello"