网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
设有定义:char s[12]={"hello"},则cout<<strlen(s)的输出是 ______。
A.5
B.6
C.11
D.12
参考答案
更多 “ 设有定义:char s[12]={"hello"},则cout<<strlen(s)的输出是 ______。A.5B.6C.11D.12 ” 相关考题
考题
若有以下定义和语句: char*s1="12345",*s2="1234"; printf("%d\n",strlen(strcpy(s1,s2)));则输出结果是______。A.4B.5C.9D.10
考题
设有如下函数定义。若在主函数中用语句cout<<f("good")调用上述函数,则输出结果为(48)。 int f(char *s){ char *p=s; while(*p! ='\0')p++; return(p-s); }A.3B.4C.5D.6
考题
若有以下定义语句: char * sl="12345", * s2="1234"; printf("%d"n",strlen(strcpy(s1,s2))); 则输出结果是 ( )A.4B.5C.9D.10
考题
若有以下定义和语句,则输出结果是______。 char*s1="12345",*s2="1234"; printf("%d\n",strlen(strcpy(s1,s2)));A.4B.5C.9D.10
考题
若有以下定义和语句:char s[12]= "a book!" ;cout< <strlen(s);则输出结果是()A.12B.8C.7D.6
热门标签
最新试卷