The XOR swap (without a temp) doesn't have this limitation,
http://en.wikipedia.org/wiki/XOR_swap_algorithm
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 12 of 12
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |