- or download this
int c = a;
a = b;
b = c;
- or download this
a = a^b;
b = a^b;
a = a^b;
- or download this
of a=1 and b=0.
a = a^b = 1 xor 0 = 1
b = a^b = 1 xor 0 = 1
a = a^b = 1 xor 1 = 0
- or download this
mysql> select * from test;
+------+------+
...
2 rows in set (0.00 sec)
mysql>