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

题目内容 (请给出正确答案)
设有变量定义chars[]=”hello”,则strlen(s)的返回值为6。()

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


参考答案

更多 “ 设有变量定义chars[]=”hello”,则strlen(s)的返回值为6。() 此题为判断题(对,错)。 ” 相关考题
考题 设变量定义为chars[]=“hello”,则数组s中有6个元素。() 此题为判断题(对,错)。

考题 设有变量定义chars[]=”hello”,则数组中有6个元素。() 此题为判断题(对,错)。

考题 设有定义:char s[12]={"hello"},则cout<<strlen(s)的输出是 ______。A.5B.6C.11D.12

考题 设有定义:"char s[12]={"string"};" 则printf("%d\n",strlen(s));的输出是( )A.6B.7C.11D.12

考题 若有定义语句:char s[10]="12345600";则strlen(s)的值是()。A.6B.7C.8D.10

考题 若有定义语句:char s[10]="123456700";,则strlen(s)的值是()。A.7B.8C.9D.10

考题 设有定义:char s[12]="string";则printf ("%dn",strlen(s));的输出是().A.6B.7C.11D.12

考题 若有定义语句:char s[10]="123456700";,则strlen(s)的值是()。A.7B.8C.9D.10

考题 若有以下定义和语句:char s[12]= "a book!" ;cout< <strlen(s);则输出结果是()A.12B.8C.7D.6