Link Details

Link 49707 thumbnail
User 217101 avatar

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.
  • 2
  • 0
  • 177
  • 17

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)