Oct 25, 2017

Given two numbers and . Swap and without using airthmetic operator and without using third variable.

XOR(^) is a binary operation called exclusive OR


 A=A^B 
 B=A^B
 A=A^B