// Example program #include <iostream> #include <string> void swap(int & a, int & b) { a ^= b ^= a ^= b; } int main() { int a = 10; int b = 100; swap(a, b); std::cout<<a<<' '<<b; return 0; }