Simple yet efficient way to swap 2 variables
here is the pseudo-code
void swapAB(var a, var b) { a XOR b; b XOR a; a XOR b; }
Log in to answer.
leothenerd 5:53 pm on November 20, 2009
here is the pseudo-code