a ^= b; b ^= a; a ^= b;
int x = 10 int y = 20 x = x+y; y = x-y; x = x-y; // Print swapped values! cout << x //20 cout << y //10
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)