A.Moving from place to place.B.Enjoying life in the country.C.Making a little progress
A.Moving from place to place.
B.Enjoying life in the country.
C.Making a little progress each day.
D.Working and learning.
A.Moving from place to place.
B.Enjoying life in the country.
C.Making a little progress each day.
D.Working and learning.
第1题
有以下程序 #include<iostream.h> float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b) ,a-c) ;}程序运行后的输出结果是
A.编译出错
B.9
C.21
D.9
第2题
有以下程序: #include<iostream.h> float tun(int X,int Y) {return(X+Y);} void main {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,B.,a—C.; 程序运行后的输出结果是()。
A.编译出错
B.9
C.21
D.9.0
第3题
有以下程序 #include<iostream.h float fun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b),a-c);} 程序运行后的输出结果是()。
A.编译出错
B.9
C.21
D.9
第4题
A.编译出错
B.9
C.21
D.9
第5题
A.编译出错
B.9
C.21
D.9.0
第6题
有以下程序: #include<iostream.h> void fun(int a,int b,int C. { a=456,b=567,c=678;} void main { int X=10,Y=20,Z=30; fun(X,Y,z); aout<<x<<’,’<<Y<<’,’<<z<<endl; } 输出结果是()。
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第7题
有以下程序 #include<iostream.h> void fun(int a,int b,int c) {a=456,b=567,c=678;} void main() { int x=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
第8题
有以下程序 #include<iostream.h> void fun(int a,int b,int c) {a=456,b=567,c=678;} void main() { int x=10,y=20,z=30; fun(x,y,2); cout << X < < ‘,’ < < y < < ‘,’ < < z < < endl; } 输出结果是
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
第9题
有以下程序 #include<iostream.h> void fun(int a,int b,int c) {a=456,b=567,c=678;} void main() { int x=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
第10题
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }
A.0
B.4
C.10
D.无定值
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!