首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果是【 】。 #include<iostream. h> #include<string. h> void main() { char b[30]; strcpy(&b[0], "XY")
下列程序的输出结果是【 】。 #include<iostream. h> #include<string. h> void main() { char b[30]; strcpy(&b[0], "XY")
admin
2013-05-30
15
问题
下列程序的输出结果是【 】。
#include<iostream. h>
#include<string. h>
void main() {
char b[30];
strcpy(&b[0], "XY");
strcpy(&b[1]," YZW");
strcpy(&b[2]," ZXY");
cout<<b(<end1;
}
选项
答案
XYZXY
解析
转载请注明原文地址:https://kaotiyun.com/show/t1Np777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
“年龄在18~25之间”这种约束是属于数据库当中的()。
类的构造函数是一个特殊的成员函数,它由类的对象自动调用。它的作用是【】。
执行语句inta,b,c;scanf("%d,%d%d",&a,&b,&c);如果输入形式为10,12,14,则a,b,c的值分别是【】。
以下程序的运行结果是【】。#include<iostream.h>voidmain(){boolt1=8,t2=0,t3=1;cout<<t1<<’\t’<<t2<<’\t’<<t3<<end1;}
对下列语句正确的描述是()。constint*x;int*constx;
下面关于形参与实参的说法,正确的是()。
下面程序的输出结果是【】。#include<iostream.h>intd=1;intfun(intp){staticintd=5;d+=p;cout<<d<<"";
下列有关拷贝构造函数的描述中错误的是()。
对于语句cout<<end1<<x;中的各个组成部分,下列叙述中错误的是______。
若有定义:intk,*q;,则下列各选项中赋值表达式正确的是()。
随机试题
设D是由曲线y=x2与直线y=ax(a>0)所围成的平面图形,已知D分别绕两坐标轴旋转一周所形成的旋转体的体积相等,试求:(1)常数x的值;(2)平面图形D的面积.
A.无痛性肉眼血尿B.肉眼血尿伴肾绞痛C.初始血尿D.终末血尿伴膀胱刺激征肾结核的血尿特点是
下列哪项不是十枣汤的用法()
外阴局部受伤时易形成血肿的部位是
在民事诉讼中,对于经过法定程序公证证明的法律行为、法律事实和文书,人民法院如何对待?()
根据我国《票据法》,无票据更改权人的下列行为中属于票据变造行为的是()。
内部控制由()信息与沟通等五个要素组成。
下列属于衍生金融产品的是()。
如果一个人同时戴两块手表,可能会觉得不______,因为他不知道该相信哪一块手表;如果在一个企业里出现两种不同的标准,则必将让员工______。填入画横线部分最恰当的一项是()。
身为一半的江南人,第一次看见莲,却在植物园的小莲池畔。那是十月中旬,夏末秋初,已凉未寒,迷迷蒙蒙的雨丝,①沾湿了满地的香红,但不曾淋熄荧荧的烛焰,那景象,豪艳之中别有一派凄清。那天独冲烟雨,原要去破庙中寻访画家刘国松,画家不在,画在,我迷失在画中,到现在还
最新回复
(
0
)