void swap(ref int x, ref int y) { x = x ^ y; y = y ^ x; x = x ^ y; }
im learning about bitwise XOR. how is this swapping occurring? it\'
swap two number using bitwise operator: use the following PYTHON code:
m,n=map(int,input().split()) m=m^n n=m^n m=m^n print(m,n)
i hope it helps.