首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序 #include <stdio.h> #include <string.h> main() { printf("%d\n", strlen("0\t\n\0C011\1")); } 程序运行后的输出结果是
有以下程序 #include <stdio.h> #include <string.h> main() { printf("%d\n", strlen("0\t\n\0C011\1")); } 程序运行后的输出结果是
admin
2020-07-28
19
问题
有以下程序
#include <stdio.h>
#include <string.h>
main()
{
printf("%d\n", strlen("0\t\n\0C011\1"));
}
程序运行后的输出结果是
选项
A、3
B、13
C、1
D、0
答案
A
解析
C语言转义字符是一个字符。字符串0\t\n\0C011,共有0,\t, \n三个字符。strlen()遇到\0计数结束,因此计数为3,故答案为A选项
转载请注明原文地址:https://jikaoti.com/ti/MJD0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
以下关于宏的叙述中正确的是
有以下程序#definePT3.5;#defineS(x)PT*x*x;main(){inta=1,b=2;printf("%4.1f\n",S(a+b));}程序运行后的输出结果是
若变量已正确定义,以下选项中非法的表达式是
设有定义:intk=0;以下选项的四个表达式中与其他三个表达式的值不相同的是
通常软件测试实施的步骤是
使用VC++2010打开考生文件夹下modi1中的解决方案。此解决方案的项目中包含一个源程序文件modi1.c。在此程序中,函数Creatlink的功能是:创建带头节点的单向链表,并为各节点数据域赋0Nm﹣1的值。请改正函数Creatlink中指定部位的
以下选项中非法的C语言字符常量是
软件系统总体结构图的作用是
算法的时间复杂度是指
某二叉树共有845个节点,其中叶子节点有45个,则度为1的节点数为()。
随机试题
起管柱时如何发现溢流?
适度控制需要注意的问题有哪些?
某水溶性维生素人体需要量与热能摄入量有关,红细胞内谷胱甘肽还原酶活性与其水平有关。该营养素为
A.第7椎B.第12椎C.第14椎D.第16椎E.第8椎
男性,54岁,患脑血管疾病,急性期后留有语言和一侧肢体活动功能障碍后遗症,康复期护理首先应帮助病人()
建筑工程发包与承包的招标投标活动,应当遵循公开、平等竞争的原则,择优选择承包单位。()
某建设单位2013年9月1日领取了施工许可证,由于特殊原因不能按期开工,故向发证机关申请延期。根据我国《建筑法》的规定,下列关于延期的说法中,正确的是()。
单层工业厂房,经常采用的结构是排架结构,排架由屋架、柱、基础组成,柱间和屋架间设置支撑,保证厂房纵向刚度,排架结构的特点是()。
同学们正在教室里聚精会神地听课,突然从外面飞进来一只蝴蝶,大家都把视线转向它,从心理学的角度看,这是()。
Influencedbymoviesandpopularnovels,mostpeopleseesharksaspeople-eatingmonsters.Thisisfarfromthetruth.Everyyea
最新回复
(
0
)