首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序的输出结果是【 】。 char s[ ]="XYZQ"; void main(){ char *p; for(p = s; p < s+4; p++) cout<<p<<end1; }
以下程序的输出结果是【 】。 char s[ ]="XYZQ"; void main(){ char *p; for(p = s; p < s+4; p++) cout<<p<<end1; }
admin
2009-01-15
24
问题
以下程序的输出结果是【 】。
char s[ ]="XYZQ";
void main(){
char *p;
for(p = s; p < s+4; p++)
cout<<p<<end1;
}
选项
答案
XYZQ YZQ ZQ Q
解析
转载请注明原文地址:https://kaotiyun.com/show/IMkp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序:#includemain(){inti=0,a=O;while(i
有以下程序,程序运行后的输出结果是#includemain(){intx,y,z;x=y=1;z=x*,y*,*y;printf("%d,%d,%d\n",x,y,z);}
支持子程序调用的数据结构是
设有以下函数:voidfun(intn,char*s){…},则下列对函数指针的定义和赋值均正确的是()。
以下能正确表述算式sin(2πr+30°)的C语言表达式是()。
设有下面的定义:structst{inta;floatb;}d;int*p;要使p指向结构变量d中的a成员,正确的赋值语句是()。
设fp为指向某二进制文件的指针,且已读到此文件末尾,则函数feof(fp)的返回值为()。
关于程序设计基本概念,以下叙述错误的是
下列给定程序中,函数fun的功能是:在形参s所指字符串中寻找与参数c相同的字符,并在其后插入一个与之相同的字符,若找不到相同的字符则不做任何处理。例如,若s所指字符串为“baacda”,c中的字符为a,执行后s所指字符串为“baaaacdaa”。
以下关于C语言函数参数传递方式的叙述正确的是()。
随机试题
汤剂的优点是
慢性细菌性痢疾是指病程超过
A.医务人员在为病人服务过程中,处事慎重、严谨、周密、准确、无误B.医务人员在履行医德义务中所形成的道德意识C.医务人员心理性上自尊心的表现D.促使医务人员自觉履行医学道德义务E.医务人员在物质生活中和精神生活中,由于感受到或理解到职业目标和理想的
消除应力钢丝,是指钢丝在塑性变形下(轴应变)或通过矫直工序后,在适当温度下进行的短时()得到。
背景:A公司中标一城市主干道拓宽改造工程,道路基层结构为150mm石灰土和400mm水泥稳定碎石,面层为150mm沥青混凝土。总工期为7个月。开工前,项目部做好了施工交通准备工作,以减少施工对群众社会经济生活的影响;并根据有关资料,结合工程特点和自身施
在海运过程中,被保险货物被海盗劫持造成的损失属于()
如有两个以上申报价格符合集合竞价确定成交价原则的,深圳证券交易所取()为成交价。
已知某项目前5年的净现金流量如表7一2所示。注:19%的第1—5年的折现系数分别为0.8403、0.7062、0.5934、0.4987、0.4190。根据以上资料,回答下列问题。为了使负债水平不同和筹资成本不同的项目具有共同的比较基础,评估中需
①秋睡熟了一点便是冬,上帝不愿意把它忽然唤醒,所以做了个整人情,连带冬全部给了济南②上帝把夏天的艺术赐给瑞士,把春天的赐给西湖,秋和冬的全赐给了济南。秋和冬是不好分开的③请你在秋天来④可是,加上济南的秋色,济南便由古朴的画境转入静美的诗境中了⑤那城
Aftercompletingtheirmedical-historyforms,patientsattheHopeClinicforWomeninGraniteCity,111.areaskedanunusualq
最新回复
(
0
)