void main()
{int a,b,*p,*p1,*p2;
printf("input two numbers:");
*p1=a; *p2=b;
if(a<b)
{p=p1;
p1=p2;
p2=p;
}
printf("a=%d\n b=%d\n *p1=%d *p2=%d\n",a,b,*p1,*p2);
}
{int a,b,*p,*p1,*p2;
printf("input two numbers:");
*p1=a; *p2=b;
if(a<b)
{p=p1;
p1=p2;
p2=p;
}
printf("a=%d\n b=%d\n *p1=%d *p2=%d\n",a,b,*p1,*p2);
}