Lesson 20: Pass by address — a swap that works
Remember the broken swap from lesson 10? The function received copies of x and y, swapped the copies — and the originals stayed put. Today we fix it: void swap(int *a, int *b) receives addresses, and we call it with swap(&x, &y);. Writing through *a and *b changes the caller's real variables. This i