/* * passaddr3.c */ #include void swap(int * ,int *); int main(void) { int aa,bb; aa=5; bb=26; // Displaying the values of aa and bb before calling swap() printf("Before calling swap(), aa is: %d and bb is %d\n", aa,bb); swap(&aa,&bb); // calling swap printf("After calling swap(), aa is: %d and bb is %d\n", aa,bb); return 0; } void swap(int * paa, int * pbb) { int tmp; tmp=*paa; *paa=*pbb; *pbb=tmp; printf("\nIn swap():"); printf("*paa is: %d and *pbb is: %d\n", *paa,*pbb); }