void swap(int *p1,int*p2)
{
int temp;
temp=*p1;
*p1=*p2;
*p2=temp;
}
int *temp;
temp=p1;
p1=p2;
p2=temp;
2函数实现的功能相反————————
指针的值传递和址传递,布布扣,bubuko.com
指针的值传递和址传递
原文:http://yw1994.blog.51cto.com/7621136/1398772