下面程序的运行结果是( )
#include <iostream>
using namespace std;
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;
}
发布于 2020-12-25 22:07:21
登录后免费查看答案
关注者
0
被浏览
446