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"


Tag:字符串 提示 语言 时间:2024-01-14 14:36:34