#include void swapValues(int *first,int *second) { int temp; temp = *first; *first = *second; *second = temp; } void swapPointers(int **first,int **second) { int *temp; temp = *first; *first = *second; *second = temp; } main() { int a,b,*x,*y; x = &a; y = &b; scanf("%d %d",x,y); printf("%p %p %d %d %p %p\n",x,y,*x,*y,&x,&y); swapValues(x,y); printf("%p %p %d %d %p %p\n",x,y,*x,*y,&x,&y); swapPointers(&x,&y); printf("%p %p %d %d %p %p\n",x,y,*x,*y,&x,&y); }