首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果是【 】。 #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
44
问题
下列程序的输出结果是【 】。
#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全国计算机二级
相关试题推荐
函数定义为fun(int&i),变量定义n=100,则下面调用正确的是()。
下列程序的输出结果是()。#include<iostream>usingnamespacestd;intmain(){intx[6]={1,3,5,7,9,11},*k,**s;k=x
下列概念中,不属于面向对象方法的是()。
以下程序的运行结果是【】。#include<iostream.h>voidmain(){boolt1=8,t2=0,t3=1;cout<<t1<<’\t’<<t2<<’\t’<<t3<<end1;}
设在主函数中有以下定义和函数调用语句,且fun()函数为void类型,请写出fun()函数的首部【】。intmain(){doubles[10][22];intn;...fun(s);...re
下面关于形参与实参的说法,正确的是()。
写出下列程序代码运行的结果【】。#include<iostream.h>classA{public:virtualvoiddisp(){cout<<"calssA!"<<(end
下面程序的输出结果是【】。#include<iostream.h>intd=1;intfun(intp){staticintd=5;d+=p;cout<<d<<"";
有如下程序#include<iostream.h>voidmain(){charch[2][5]={"6937","8254"},*p[2];inti,j,s=0;for(i=0;i<2;i++)p[i]=ch
下列关于运算符重载的叙述中,正确的是______。
随机试题
利奥塔德美学的基本特点是他将整个美学体系建立在对什么的论述上【】
BrightonisapopularseasidetownonthesouthcoastofEngland.Notlongago,somepolicemenwerevery【21】.There【22】severals
脑血栓形成病人表现
用物理或化学方法消除或杀灭除芽胞以外所有病原微生物,使之达到无菌化的过程是指()。
关于管家基因的叙述正确的是
缺铁性贫血溶血性贫血
根据票据法律制度规定,对于见票后定期付款的汇票,承兑的绝对应记载事项包括( )。
比喻:拟人
巴以冲突:领土()
PassageThreeWhatdoestheword"uptick"attheendofPara.5referto?
最新回复
(
0
)