The XOR Swap Algorithm (C#)

added by BlackWasp
9/3/2010 1:22:50 PM

2 Kicks, 262 Views

The XOR Swap algorithm provides a means to swap the values in two integer variables without requiring the use of a third, temporary variable. This algorithm is interesting to know, although its use is unnecessary in high-level languages.


0 comments