p1=&ap2=&b; if(a<b)swap(p1,p2); printf("a=%d,b=%d\n",a,b); } swap(pt1,pt2) int *ptl,*pt2; {intp树 p=*pt1; *pt1=*pt2; *pt2=p; }p1=&a;p2=&b; if(a<b)swap(p1,p2); printf("a=%d,b=%d\n",a,b); } swap(pt1,pt2) int *pt1,*pt2; {int p; p=*pt1; *pt1=*pt2; *pt2=p; }