首页 > 外语类考试> 金融英语
题目内容 (请给出正确答案)
[主观题]

请写出如下程序的输出结果:#include void Swap( int &a, int & b);void main(){int

请写出如下程序的输出结果:#include void Swap(int &a, int & b);void main(){int

请写出如下程序的输出结果:

#include void Swap(int &a, int & b);void main(){int x(10 ), y(7 );

cout<< "x="<< x<< " y="<< y<< endl;Swap(x , y );cout<< "x="<< x<< " y="<< y<< endl;

}void Swap(int & a, int & b){ int temp; temp = a ; a=b ; b=temp ; }

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“请写出如下程序的输出结果:#include void Swa…”相关的问题
第1题
写出下列程序的输出结果 ______。 main() { int=0; while(n++<=1); printf("%d,",n);

写出下列程序的输出结果 ______。 main() { int=0; while(n++<=1); printf("%d,",n); printf("%d",n++); }

点击查看答案
第2题
写出下列程序的输出结果______。 main() { int n=0; while(n++<=1) ; printf(

写出下列程序的输出结果______。 main() { int n=0; while(n++<=1) ; printf("%d,",n); printf("%d",n++); }

点击查看答案
第3题
阅读以下程序,请写出输出结果_________ public class EqualsMethod{ public static vo
id main (String[]args){ Integer nl=new Integer (47): Integer n2=new Integer (47); System.out.println(n1.equals(n2)); }

点击查看答案
第4题
有以下程序,程序中库函数islower(ch)用以判断ch中的字*是否为小写字* include<stdio.h> includ

有以下程序,程序中库函数islower(ch)用以判断ch中的字*是否为小写字* include<stdio.h> include<ctype.h> yoidfun(char*p) {inti=0; while(p[i]) {iffp[i]=&&islower(p[i-1]))p[i-1]=p[i-1]=p[i-1]-a+A; i++: } } main() {chars1[100]=abcdEFG!; fun(s1);printf(%s\n,s1); } 程序运行后的输出结果是

A.abcdEFg!

B.abcdEFG!

C.abcdEFg!

D.abcDEFG!

点击查看答案
第5题
程序如下: main() { int i=4; printf("%d",-++i); } 该程序执行后的输

程序如下: main() { int i=4; printf("%d",-++i); } 该程序执行后的输出结果以及i的值分别是______ 、_______。

点击查看答案
第6题
阅读下列程序并写出程序运行结果。Public Sub change1(ByVal x As Integer, ByVal y As Integer
阅读下列程序并写出程序运行结果。Public Sub change1(ByVal x As Integer, ByVal y As Integer

阅读下列程序并写出程序运行结果。

Public Sub change1(ByVal x As Integer, ByVal y As Integer)

Dim t As Integer

t = x

x = y

y = t

End Sub

Public Sub change2(x As Integer, y As Integer)

Dim t As Integer

t = x

x = y

y = t

End Sub

Private Sub Form_Click()

Dim a As Integer, b As Integer

a = 22: b = 33

change1 a, b

Form1.Print "A1="; a, "B1="; b

a = 22: b = 33

change2 a, b

Form1.Print "A2="; a, "B2="; b

End Sub

写出程序运行时,单击窗体Form1上的输出结果。

点击查看答案
第7题
写出程序的运行结果。 #include main() {int a, b; scanf ("%d%d", &a,

写出程序的运行结果。

#include

main()

{int a, b;

scanf ("%d%d", &a, &b);

if (a>=h) printf("Yes");

printf (" a+h =%d\n", a+h );

}

如果输入:a=6,b=8,则输出结果是___________

点击查看答案
第8题
现有如下程序,则程序的输出结果为()。 include“stdio.h” int f(int a,int b) { int c; i

现有如下程序,则程序的输出结果为()。 include“stdio.h” int f(int a,int b) { int c; if(a>0&&a<10)c=(a+b)/2; else c=a*b/2; return c; } void main() { int a=8,b=20,c; c=f(a,b); printf(“%d\n”,c), }

A.随机数

B.80

C.28

D.14

点击查看答案
第9题
设有如下程序: Private Sub Form_Click() a=325456 Print Format(Int((a*10+0

设有如下程序: Private Sub Form_Click() a=325456 Print Format(Int((a*10+0.5))/10,"000,000.00") End Sub 程序运行后,单击窗体,输出结果为【 】。

点击查看答案
第10题
写出程序的输出结果。 #include main() {ìntk=lO; char c="b"'; do swith

写出程序的输出结果。

#include

main()

{ìntk=lO; char c="b"';

do

swith(c++)

{ case'a':k++;

case'b':k--;

case'c' :k+=3;break;

case'd',:k=k%4;

}

while(c! ='c');

printf("%d\n",k );

}

运行结果是:____________

点击查看答案
第11题
设有如下程序: Private Sub Form_Click() Dim a As Integer,s As Integer

设有如下程序: Private Sub Form_Click() Dim a As Integer,s As Integer n=8 S=0 DO S=S+n n=n-1 Loop While n>0 Print S End Sub 以上程序的功能是【 】。程序进行后,单击窗体,输出结果为【 】。

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改