I just wanted to see how the XOR swap algorithm works at bit level, the code for the algorithm is: void xorSwap( int &a, int &b...
Swapping integers
The typical way to swap two integers would be with the use of a temporary variable: int a=5,b=8,temp; temp=a; a=b; b=temp; Although an inte...