I don't know whether these type of tips are allowed or not. But after having experience of core algorithm-base technical interview I thought I should share question I was asked in my interview.
They asked me to show all methods I know to swap values of two variables.
I Tried my level best to do it:
a -= b;
b += a;
a = (b - a);
a = b + a - (b = a)
a ^= b ^= a ^= b;
a -= b += a -= b = -b;
a=a*b;
b=a/b;
a=a/b;
a %= b %= a %= b;
Note : All one line codes are compiler dependent only.