#include void swap (int *first, int *second) { int temp = *first; *first = *second; *second = temp; } int main () { int i = 5, j = 6; printf ("i=%d j=%d\n", i, j); // Pass the addresses to i and j. swap (&i, &j); printf ("i=%d j=%d\n", i, j); }