// swap int variables a and b
int a = 1;
int b = 2;
// save a copy of "a" you are about to clobber
int swap = a;
a = b;
b = swap;