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"
- 上一篇:变量的指针,其含义是指该变量的()
- 下一篇:两个指针变量不可以()。
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"
相关答案