#include<stdio.h> void main() { void swap(int *p1,int *p2); int a,b; int *p1,*p2; a=100; b=200; p1=&a; p2=&b; printf("%d,%d/n",a,b); printf("%d,%d/n",*p1,*p2); printf("%d,%d/n",p1,p2); if(a<b) { swap(p1,p2); } printf("%d,%d/n",a,b); printf("%d,%d/n",*p1,*p2); printf("%d,%d/n",p1,p2); } void swap(int *p11,int *p22) { printf("ahha--%d,%d/n",p11,p22); int *tmp; tmp=p11; p11=p22; p22=tmp; printf("ahha--%d,%d/n",p11,p22); }