网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
已知“chars[10]="hello";”,则s[4]的值为'l'。()

此题为判断题(对,错)。


参考答案

更多 “ 已知“chars[10]="hello";”,则s[4]的值为'l'。() 此题为判断题(对,错)。 ” 相关考题
考题 设有变量定义chars[]=”hello”,则strlen(s)的返回值为6。() 此题为判断题(对,错)。

考题 已知“chars[10]="hello";”,则s[5]的值为'\0'。() 此题为判断题(对,错)。

考题 以下选项中正确的语句组是( )。A)char s[];s="HELLO!";B)char*s;s={"HELLO!"};C)char s[10];s="HELLO!";D)char *s;s="HELLO!";

考题 下面不正确的字符赋值或赋初值的方式为()。A.chars[10]=”hello!”B.chars[10]={‘h’,‘e’,‘l’,‘l’,‘o’,‘!’}C.chars[10];s=”hello”D.char[]=”hello!”

考题 以下选项中正确的语句组是( )。A.char s[]; s="HELLO!";B.char *s; s={"HELLO!"};C.char s[10]; s="HELLO!";D.char *s; s="HELLO!";

考题 下列是为字符数组赋字符串的语句组,其中错误是:A.char s[10]; s=”program”;B.char s[]=”program”;C.char s[10]=”Hello!”;D.char s[10];strcpy(s,”hello!”);

考题 【单选题】下列是为字符数组赋字符串的语句组,其中错误的是 。A.char s[l0]; s="program";B.char s[]=" program";C.char s[l0]="Hello!";D.char s[l0];strcpy(s,"hello !");

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

考题 5、下列是为字符数组赋字符串的语句组,其中错误是:A.char s[10]; s=”program”;B.char s[]=”program”;C.char s[10]=”Hello!”;D.char s[10];strcpy(s,”hello!”);