int x=1;
int y=2;
x ^= y ^= x ^= y;
I am expecting the values to be swapped.But it gives x=0 and y=1. when i tried in C language it gives the correct result.I am exp
int x=1;
int y=2;
x ^= y ^= x ^= y;
I am expecting the values to be swapped.But it gives x=0 and y=1. when i tried in C language it gives the correct result.I am exp