首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果是【 】。 #include<iostream> using namespace std; void fun(int &rf) { rf*=2; } int main()
下列程序的输出结果是【 】。 #include<iostream> using namespace std; void fun(int &rf) { rf*=2; } int main()
admin
2013-05-30
42
问题
下列程序的输出结果是【 】。
#include<iostream>
using namespace std;
void fun(int &rf)
{
rf*=2;
}
int main()
{
int num= 500;
fun(num);
cout<<num<<endl;
return O;
}
选项
答案
1000
解析
转载请注明原文地址:https://www.kaotiyun.com/show/unNp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若有以下程序:#include<iostream>usingnamespacestd;classA{private:intx;public:intz;voidsetx(inti){x=i;}intgetx
有如下程序:#include<iostream>usingnamespacestd;classBase{private:voidfun1()const{cout<<"fun1";}protected:voidfun2(
有如下类定义;classAA{inta;public:intgetRef()const{return&a;}//①intgetValue()const{returna;}//②voidset(intn)const{a=n
下列语句段落将输出字符’*’的个数为()。#include<iostream.h>Voidmain(){inti=100;while(1){i--;if(i==0)break;cout<<’*’;}}
类模板的使用实际上是将类模板实例化成一个具体的()。
模块化程序设计过程中,追求模块的独立性,尽量做到()。
输入流对象是输出流的源头,下面()不是输入流类。
阅读下面程序:#include<iostream.h>voidmain(){inti,j,row=0,column=0,m;staticinta[3][3]={100,28,72,-30,2,-100};
随机试题
菲德勒的随机制宜的领导理论认为,影响领导行为的因素有()
ThefilmIsawyesterdayisthebestone______I’veeverseen.
类风湿关节炎早期MRI表现中,正确的有
焊接钢筋网片为500mm×400mm,钢筋直径为Φ6(HPB235),两个方向的钢筋分别为10根和8根,网片间距s=50mm,则间接钢筋的体积配箍率与下列( )项数值最为接近。间接钢筋的局部承压承载力提高系数βcor=2,体积配箍率为ρv=0.03,
某建设单位在一审判决后,不服提起上诉,二审法院作出发回重审的裁定,对此下列说法错误的是()。
关于处置组,下列表述中正确的是()。。
社会工作者在推动社会性别主流化的过程中,工作的重点内容包括()。
Nowomancanbetoorichortoothin.ThissayingoftenattributedtothelateDuchess(公爵夫人)ofWindsorembodiesmuchoftheod
Thesummervacation______over,theythengotdowntotheirworkagain.
A.equallyB.compensateC.distinctionD.givenE.qualifyF.fairerG.concernedH.admissionI.proveJ.apparentK.
最新回复
(
0
)