69,371
社区成员
发帖
与我相关
我的任务
分享
swap(int *a, int *b)
{
int t;
t = *a;
*a = *b;
*b = t;
}
#include<iostream>
using namespace std;
swap(int *a,int *b)
{
cout<<&a<<endl;
}
main()
{int x=3,y=5,*p=&x,*q=&y;
swap(p,q);
cout<<&p;
}