I got a beautiful page explaining the swapping ways -
http://booleandreams.wordpress.com/2008/07/30/how-to-swap-values-of-two-variables-without-using-a-third-variable/
It may help some one ....
Swapping values of two variables without using a third ..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Anil KumarRank #367 · 6.8K reputationPosted Jun 21, 2011, 9:10 PM EDT
So I am closing this thread.