I have to swap two variables with a number value without using a third variable. What is the simple solution?
Another popular way is the XOR swapping strategy. http://en.wikipedia.org/wiki/XOR_swap_algorithm