If you think you are being clever by not using 3rd variable then do some performance tests and you see that the much faster way is to use 3rd int
to store the variable temporarily.
Anyways, i solved the problem with XOR bitwise operator:
a ^= b;
b ^= a;
a ^= b;