Do a web search for xor swap.
Hi Kanthi,
Swapping 2 variables is possible as follows:
x = x + yy = x - yx = x - y
Although this way doesn't require a third variable, but it is not simple to understand. So I think it is not good to use this way.
K.n.i.g.h.t