#include <stdio.h>
void swap(int *pa,int *pb)
{
int t;
t=*pa;
*pa=*pb;
*pb=t;
}
int main()
{
int a,b,*p1,*p2;
scanf("%d%d",&a,&b);
p1=&a;
p2=&b;
swap(p1,p2);
printf("%d %d",a,b);
}
标签:p2,p1,int,11.24,pb,pa,swap From: https://blog.51cto.com/u_15758636/5884450