网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有如下程序:inchdevoid fun(int &x,int y){int t=x;x=y;y=t;}int main(){int a
有如下程序: #inchde<iostream.h> void fun(int &x,int y){int t=x;x=y;y=t;} int main() { int a[2]={23,42); fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<Std::endl; return 0; } 执行后的输出结果是( )。
A.42,42
B.23,23
C.23,42
D.42,23
参考答案
更多 “ 有如下程序:inchdevoid fun(int x,int y){int t=x;x=y;y=t;}int main(){int a 有如下程序: #inchde<iostream.h> void fun(int x,int y){int t=x;x=y;y=t;} int main() { int a[2]={23,42); fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<Std::endl; return 0; } 执行后的输出结果是( )。A.42,42B.23,23C.23,42D.42,23 ” 相关考题
考题
阅读下面程序: include void fun(int n) { int x(5); static int y(10); if(n>0) {
阅读下面程序:include<iostream.h>void fun(int n){int x(5);static int y(10);if(n>0){++x;++y;cout<<x<<","<<y<<end1;}}void main(){int m(1);fun(m);}则该程序的输出结果是______。
考题
阅读下面程序: include void f(int n) { int x(5); static int y(10); if(n>0) { ++
阅读下面程序:include<iostream.h>void f(int n){int x(5);static int y(10);if(n>0){++x;++y;cout<<x<<","<<y<<endl;}}void main(){int m(1);f(m),}则该程序的输出结果是【 】
考题
下列函数原型声明中错误的是A.void Fun(int x=O,int y=0);B.void Fun(int x,int y);C.void Fun(int x,int y=0);D.void Fun(int x=0,int y);
考题
下面程序的运行结果是includevoid fun(int * a,int * b){ int x= * a; * a = * b;*
下面程序的运行结果是 #include<iostream.h> void fun(int * a,int * b) { int x= * a; * a = * b; * b=x; cout <<*a<< *b<<""; } void main( 0 { int x =1,y =2; fun(x,y); cout<< x << y <<end1; }A.12 12B.12 21C.21 12D.21 21
考题
下面程序的运行结果是 include void fun(int * a,int * b) { int x= * a; * a= *
下面程序的运行结果是#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 12B.12 21C.21 12D.21 21
考题
有如下程序:includevoid fun(intx, int y){int t=x; x=y; y=t;}int main(){int
有如下程序: #include<iostream> void fun(intx, int y){int t=x; x=y; y=t;} int main() { int a[2]={23,42}; fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<std::end1; return 0; } 执行后的输出结果是( )。A.42,42B.23,23C.23,42D.42,23
考题
有如下程序:include void fun (int x,int y){int t=x;x=y;y=t;}int main(){ int
有如下程序: #include <iostream> void fun (int x,int y){int t=x;x=y;y=t;} int main() { int a[2]={23,42}; fun (a[1],a[0]; std::cout<<a[0]<<”,”<<a[1]<<std:: ond1; retum0; }执行后的输出结果是______ 。A.41,41B.23,23C.13,42D.42,23
考题
阅读下列程序: include void fun(int n) { int x(5); static int y(10); if(n>0) {
阅读下列程序:include<iostream.h>void fun(int n){int x(5);static int y(10);if(n>0){++x;++y;cout<<x<<","<<y<<endl;}}void main()int m(1);fun(m);}则该程序的输出结果是______。
考题
以下程序运行后的输出结果是【】。 include void fun(int x,int y) {x=x+y;y=x-y
以下程序运行后的输出结果是【 】。include<iostream.h>void fun(int x,int y){ x=x+y;y=x-y;x=x-y;cout<< x << "," <<y << " ,";}void main( ){ int x=2,y=3;fun(x,y);cout<< x << "," << y << endl;}
考题
有如下程序: include void fun(intx,int y){int t=x;x=y;y=t;} int ma
有如下程序: #include<iostream> void fun(intx,int y){int t=x;x=y;y=t;} int main() { int a[2]={23,42}; fun(a[1],a[0]; std::cout<<a[0]<<","<<a[1]<<std::ndl; return 0; } 执行后的输出结果是A.42,42B.23,23C.23,42D.42,23
考题
下面程序的运行结果是______。 include void fun(int a,int b=3) { static int
下面程序的运行结果是______。include<iostream.h>void fun(int a,int b=3){static int i=2;a=a+b+i;i=i+a;}void main(){int x=5,y=2;fun(x,y);cout<<x<<",";fun(x);cout<<x<<endl;}
考题
下面程序的运行结果为_____。 include void fun(int x=0,int y=0) { cout
下面程序的运行结果为_____。include<iostream.h>void fun(int x=0,int y=0){cout < < x < < y;}void main( ){fun(5) ;}
考题
有以下程序includefloat fun(int x,int y){return(x+y);}void main( ){int a=2,b=5
有以下程序 #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.9C.21D.9
考题
有如下程序:include void fun(int x, int y){int t=x;x=y;y=t;}int main (){int
有如下程序: #include <iostream> void fun(int x, int y){int t=x;x=y;y=t;} int main () { int a[2]={23,42}; fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<std::endl; return 0; } 执行后的输出结果是A.42,42B.23,23C.23,42D.42,23
考题
有以下程序:includevoid fun(int a, int b, int c){a=456,b=567,c=678;}void main(
有以下程序: #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,10B.10,20,30C.456,567,678D.678,567,456
考题
有以下程序:includeFloat fun(int x, int y){return(x+y) ;}void main( ){int a=2,
有以下程序: #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.9C.21D.9.0
考题
如下程序的输出结果是includevoid fun(int x=y;y=t;}int main(){in
如下程序的输出结果是 #include<iostream> void fun(int & X,inty){intt=x;x=y;y=t;} int main( ){ int a[2]={23,42}; fun(a[1],a[0]); std::cout<<a[0]<<","<<a[1]<<std::endl; return 0; }A.42,42B.23,23C.23,42D.42,23
考题
下列程序段的输出结果是includevoid fun(int * x,int * y){cout
下列程序段的输出结果是 #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.2143B.1212C.1234D.2112
考题
以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main
以下程序输出结果是 ______。 #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.0B.4C.10D.无定值
考题
下面程序的输出结果是【】。includeint add(int a, int b);void main(){extern int x,
下面程序的输出结果是【 】。include<iostream.h>int add(int a, int b);void main(){extern int x, y;cout<<add(x, y)<<end1;}int x(20),y(5);int add(int a, int b){int s=a+ b;return s;}
考题
有以下程序:includevoid fun(int a,mt b,int C) {a=456,b=567,c=678;}void main(){
有以下程序: #include<iostream.h> void fun(int a,mt 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,10B.10,20,30C.456,567,678D.678,567,456
考题
阅读下面程序:include fun (int a, int b){int c;c=a+b;return c;}void main(){int
阅读下面程序:#include <iostream.h>fun (int a, int b){int c;c=a+b;return c;}void main(){int x=6, y=7, z=8, r;r=fun( (x--, y++, x+y), z--);cout<<r<<end1;}则该程序的输出结果是( )。A.11B.20C.21D.31
考题
下列程序运行后的输出结果是()。includevoid fun(int,int,int*);void main(){int x,
下列程序运行后的输出结果是( )。 #include<iostream.h> void fun(int,int,int*); void main() { int x,y,z; fun(5,6,x); fun(7,x,y); fun(x,y,z); cout<<x<<","<<y<<","<<z<<endl; } void fun(int a,int b,int *c) { b+=a; *c=b-a; }A.5,5,5B.6,6,6C.5,6,7D.7,7,7
考题
阅读下面程序:includefun(int a,int b){int c;c=a+b;return c;}void main(){int x=
阅读下面程序: #include<iostream.h> fun(int a,int b) { int c; c=a+b; return c; } void main() { int x=6,y=7,z=8,r; r=fun((x--,y++,x+y),z--); cout<<r<<endl; } 则该程序的输出结果是( )。A.11B.20C.21D.31
考题
下列程序运行后的输出结果是()。 include void fun(int,int,int*); void main() { i
下列程序运行后的输出结果是( )。 #include<iostream.h> void fun(int,int,int*); void main() { int x,y,z; fun(5,6,x); fun(7,x,y); fun(x,y,z); cout<<x<<","<<y<<","<<z<<end1; } void fun(int a,int b,int *c) { b+=a; *c=b-a; }A.5, 5, 5B.6, 6, 6C.5, 6, 7D.7, 7, 7
考题
下列程序段的输出结果是 include void fun(int * X,int * y) {cout
下列程序段的输出结果是 #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 < < end1; }A.2143B.1212C.1234D.2112
考题
有以下程序 include floatfun(int x,int y) {return(x+y);}void main() {int a=2,b
有以下程序 #include<iostream.h> floatfun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; tout<<fun((int)fun(a+c,b),a-C);} 程序运行后的输出结果是A.编译出错B.9C.21D.9
热门标签
最新试卷