首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是
admin
2005-03-15
30
问题
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是
选项
A、12
B、15
C、6
D、5
答案
D
解析
转载请注明原文地址:https://jikaoti.com/ti/luS0FFFM
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面程序的功能是输出100以内所有素数:PrivateSubCommand1_Click()Forn=2To100isprime=True:k=2DoWhilek<=n/2And__________IfnModk=0The
窗体上有一个名称为Command1的命令按钮,编写如下事件过程:PrivateSubCommand1_Click()i=0DoWhilei<6Forj=1Toin=n+1Nexti=i+1LoopPrintnEndSu
一棵二叉树中共有70个叶子结点与80个度为1的结点,则该二叉树中的总结点数为
在VB中,函数过程与子程序过程的区别之一是
用语句Open"C:\teac.txt"ForInputAs#1打开文件后,就可以编程序
要求如果x被7除余2,则输出x的值,下列语句中不能实现此功能的语句是(.)。
(1)在名称为Form1,标题为“选课”的窗体上添加一个复选框数组,名称为CH1,共有四个复选框,按顺序其标题分别是“数学”、“语文”、“外语”、“计算机”,其中“语文”、“计算机”复选框处在选中状态下,程序运行时的窗体如图所示。清按要求添加控件并设置相应
输入VisualBasic源程序时,若一个命令行中包含两个语句,则两个语句之间的分隔符应使用()。
VisualBasic中的整数可以用十六进制或八进制表示,十六进制数前面冠以&H,八进制数前面冠以
在一个容量为15的循环队列中,若头指针front=6,尾指针rear=9,则循环队列中的元素个数为
随机试题
用流量测井方法对油田的产出状况和注入状况所进行的测量,是为了了解各类油层的动用状况和见水情况。()
8岁女孩。不规则发热18d,伴头痛、呕吐2周。近1周来视力减退,颈有阻力,克氏征阳性,布氏征阳性,心肺无异常。脑脊液压力增高,白细胞数350×106/L,中性粒细胞28%,淋巴细胞72%,糖2.3mmol/L,氯化物%mmol/L,蛋白定性++,定量1.
关于dot—ELISA,下面哪项叙述是错误的
下列哪项肠梗阻最适宜手术治疗
国家权力机关的法律监督的主体是()。
所有钢筋均具有明显的屈服点。()
项目环境影响评价应以项目所在国的法规、污染物排放标准为依据,在环境状况调查的基础上,分析项目的实施对()的影响。
公有制和市场经济最好的结合点是()。
“他们的情绪总是消极而不甚愉快的,他们逃避新事物,对外界和事物的变化适应较慢。”这类婴儿的气质属于以下哪种类型?()。
Whydidthewoman’sfamilymovetoOxford?
最新回复
(
0
)