Monday, August 11, 2008

Swap two variables using XOR

Here’s a neat programming trick to swap two values without needing a temp

read more | digg story