有以下程序 void f(int x int y) { int t; if(x < y) { t=x; x=y; y=t; } } main() { int a=4 b=3 c=5; f(a b); f(a c); f(b c); printf("%d %d %d\n" a b c); } 执行后输出结果是()
时间:2018-05-02 06:38:24 关键词:程序,结果是,int有以下程序void f(int x,int y){int t;if(x < y){t=x;x=y;y=t;}}main(){int a=4,b=3,c=5;f(a,b);f(a,c);f(b,c);printf("%d,%d,%d\n",a,b,c);}执行后输出结果是()
A.3,4,5
B.5,3,4
C.5,4,3
D.4,3,5
答案解析
D
举一反三