By gst
via mikechambers.com
Submitted: Oct 25 2007 / 07:52
I have been studying some Objective-C in my spare time, and was reading up on Bitwise operators tonight. I came across a simple way to exchange the value of two variables using the Exclusive-OR (XOR) operator that doesn’t require creating a temporary variable.
Add your comment