Hi All,
To swap chars/numbers between two variables, I've used the below code successfully on some implementations.
char a='a', b='b';
a ^= b ^= a ^= b;
I recently tried it on a different machine and it doesn't seem to work.
Could someone explain as to what might be the issue with this code.
regards
maverix