#include <stdio.h>
void inter(int*u,int *v);
int main(void)
{
int x=5,y =6;
printf("%d %p\n",x,&x);
printf("%d %p\n",y,&y);
inter(&x,&y);
printf("%d %p\n",x,&x);
printf("%d %p\n",y,&y);
return 0;
}
void inter(int *u,int *v)
{
int temp;
temp=*u;
*u=*v;
*v=temp;
}