To swap two variables without using arithmetic operators, you can use the XOR operator.
There are 3 ways you can do this ,
#1
a ^= b ^= a ^= b;
#2
a = a ^ b;
b = a ^ b;
a = a ^ b;
#3
a = a + b –(b=a);
Making fun with Windows
#1
a ^= b ^= a ^= b;