There are several ways I�ve seen over the years of interchanging 2 variables. I�ll show you here how you can do it with bitwise operations. This method is most efficient when used in combination with assembler. In C++ it is looked at more like a curiosity than a real method by most. However if you would want to make your C++ code harder to read, then this can be helpful. ...
Posted by: Nitro on September 16, 2006 at 09:30.
(7 comments)