// swap variables in C void swap(int *x, int *y){ int temp = *x; *x = *y; *y = temp; } swap(&a, &b); // address of a and b