当前位置: > #include main() { char *p="abcdeofghjik"; printf("%d ",strlen(p)); }...
题目
#include main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); }
#include
main()
{ char *p="abcde\ofghjik\0";
printf("%d\n",strlen(p));
}程序运行后输出结果是
a12 b15 c6 d5

提问时间:2021-04-11

答案
a 12
abcde\ofghjik\0
共有12个字符
a,b,c,d,e,\o,f,g,h,j,i,k(‘\o'转义字符,表示空字符(NULL)’)
最后的'\0'为结束符,不算做字符串长度之内
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.