// // call_reference_using_pointers.c // // // Created by Bibhas Ghoshal on 20/02/21. // #include void swap(int*,int*); int main() { int a,b; a=5;b=20; printf("Before swap : a=%d,b=%d\n",a,b); swap(&a,&b); printf("After swap : a=%d,b=%d\n",a,b); } void swap(int *x, int*y) { int t; t = *x; *x = *y; *y = t; }