题目内容 (请给出正确答案)
[主观题]

intx;voidf{intx;x=9;cout<<x<<endl;}voidmain{f;cout<<x<<endl;}以上程序执行后结果为__和__

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“intx;voidf{intx;x=9;cout<<x<<e…”相关的问题

第1题

有如下语句序列: intx=100,&r=x; cout<<x<<一<<r<<endl; 已知其中变量x的地址为0012FF2C,则执行该语句序列的输出结果为( )。

A.100—100

B.100—0012FF7C

C.0012FF7C一100

D.0012FF7C一0012FF7C

点击查看答案

第2题

执行下列程序 int fun(int x1,int x2){ int x; x1>x2 ?(x=3):(x=4); return x+x1; } void main(){ cout<<fun(7,8); } 后输出结果是 ______。

A.9

B.10

C.11

D.12

点击查看答案

第3题

include<iostream.h>

void main()

{

int x=32,y=37;

const int *p=&x;

*p=y;

cout<<*p<<endl;

}

点击查看答案

第4题

下面程序的运行结果是( )。 #include<iostream.h> void fun(int *a,int *B. { int x=*a: *a=*b;*b=X; cout<<*a<<*b<<””: void main { int X=1,Y=2; fun(&x,&y); cout<<x<<Y<<endl; }

A.12 12

B.12 21

C.21 12

D.21 21

点击查看答案

第5题

下列程序段的输出结果是 #include<iostream.h> void fun(int * x,int * y) { cout << * X << * y; *X=3; *y=4; } void main() { int x=1,y=2; fun(&y,&x); cout << X << y<<endl; {

A.2143

B.1212

C.1234

D.2112

点击查看答案

第6题

下列程序段的输出结果是 #include<iostream.h> void fun(int*x,int*y) { cout<<*x<<*y; *x=3; *y=4; } void main( ) {int x=1,y=2; fun(&y,&x); cout<<x<<y<<endl; }

A.2143

B.1212

C.1234

D.2112

点击查看答案

第7题

#include <iostream> using namespace std; int main() { int x=3,&y=x; y+=x; cout<<y+x<<endl; }>
点击查看答案

第8题

有以下程序: #include(iostream.h) voidfun(inta,intb,intc) {a=456,b=567,C=678;} voidmain( ) { intx=10,y=20,z=30; fun(x,Y,z); cout<<x<<,<<y<<,<<Z<<endl; } 输出结果是( )。

A.30,20,10

B.10,20,30

C.456,567,678

D.678,567,456

点击查看答案

第9题

已定义类A:class A { ptivate: int x; protected: int y; public: int z; void ShowA( ) { cout << x << y << z << endl; } }; 通过继承定义派生类B:class B : public A { private: int a; public: void

A、cout << x;

B、cout << y;

C、cout << z;

D、cout << a;

点击查看答案

第10题

#include <iostream.h> void fun(int &x, int y) { x+=y; y+=x; cout<<x<<','<<y<<endl; } void main( ) { int x="2," y="4;" fun(x,y); 运行程序后,输出的第一行是 ,第二行是>
点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信