Dienstag, 20. April 2010

How to swap integers without using third variable?

The solution is simple:
a=a|b;
b=a^b
a=a^b



Keine Kommentare: