有程序: void fun(int a,int b,int c) {a=456;b=567;c=678;} main( ) {int x=10,y=20,z=30; fun(x,y,Z); printf("%d,%d,%d\n",z,y,x); } 输出结果是 ( )A.30,20,10B.10,20,30C.456,567,678D.678,567,456

有程序: void fun(int a,int b,int c) {a=456;b=567;c=678;} main( ) {int x=10,y=20,z=30; fun(x,y,Z); printf("%d,%d,%d\n",z,y,x); } 输出结果是 ( )

A.30,20,10

B.10,20,30

C.456,567,678

D.678,567,456


相关考题:

以下程序运行后输出结果是【】。int a=30,b=40;void fun(int x,int y){ int z;z=(xy)?x:y;a=z+10;b=z+20;}main(){printf("a=%d,b=%d\n",a,b);fun(a,b);prinf("a=%d,b=%d\n",a,b);}

阅读下面程序: 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);}则该程序的输出结果是______。

有以下程序:void fun(int a,int b,int c){a=456,b=567,c=678;}main(){int x=10,y=20,z=30;fun(x,y,z);printf("%d,%d,%d\n",x,y,z);}输出结果是A.30,20,10B.10,20,30C.456,567,678D.678,567,456

以下程序的输出结果是 【10】 。fun (int x,int y,int z){ z =x*x+y*y;}main (){int a=31;fun (6,3,a)printf ("%d", a)}

有如下程序: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 usingnamespacestd;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #include <iostream> using namespace std; void try(int,int,int,int); int main ( ) { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = X*X; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

阅读下列程序: 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=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

有以下程序: #includeiostream.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); aoutx’,’Y’,’zendl; } 输出结果是( )。A.30,20,10B.10,20,30C.456,567,678D.678,567,456

以下程序输出结果是 ______。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.无定值

请填写空格: include using namespace std; void fun(int x,int y,int * z) { *2 = x 请填写空格:include<iostream>using namespace std;void fun(int x,int y,int * z){ *2 = x + y;}void main(){int a=100,b=100,c,*p=c;fun(a,b,p);【 】; //输出调用fun函数后返回a、b的和。}

有以下程序: viod fun(int a,int b,int c) { a=456:b=567;c=678;} main { int x=10,y=20,z=30; fun(x,y,z): printf("%d,%d,%d\n",x,y,z); } 输出的结果是( )。A.30,20,10B.10,20,30C.456,567,678D.678,567,456

有以下程序void fun(int a,int b,int c){ a=456,b=567,c=678;}main(){ int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z);}输出结果是A.10,20,30 B.30,20,10C.456,567,678 D.678,567,456

有以下程序: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

以下程序执行后的输出结果是include using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y,int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

请教:2016年计算机二级C++基础练习三单选题1如何解答? 有以下程序:#includevoid 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}输出结果是()。A.30,20,10B.10,20,30C.456,567,678D.678,567,456

下列程序运行后的输出结果是()。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

有以下程序:includefun(int x,int y,int z){z=x*y;}main(){int a=4,b=2,c=6; fun(a,b, 有以下程序: #include <stdio.h> fun(int x,int y,int z) { z=x*y;} main() { int a=4,b=2,c=6; fun(a,b,c); printf("%d",c); } 程序运行后的输出结果是( )。A.16B.6C.8D.12

下列程序运行后的输出结果是()。 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

有以下程序:includevoid fun(int a,int b,int c){ a=456,b=567,c=678;}main(){ int x= 有以下程序: #include <stdio.h> void fun(int a,int b,int c) { a=456,b=567,c=678;} main() { int x=10,y=20,z=30; fun(x,y,z); printf("%d,%d,%d\n",x,y,z); } 此程序的输出结果是( )。A.30,20,10B.10,20,30C.456,567,678D.678,567,456

有以下程序 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

有以下程序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,2); cout << X < < ‘,’ < < y < < ‘,’ < < z < < endl; } 输出结果是A.30,20,10B.10,20,30C.456,567,678D.678,567,456