4 ms·
You can also follow the letter in C, Java, etc.: a ^= b b ^= a a ^= b
by michaelfairley 14y ago
You can also follow the letter in C, Java, etc.:
a ^= b
b ^= a
a ^= b
- deleted 14y ago[deleted]
- jervisfm 14y agoWhat does that do?
- steveklabnik 14y agohttp://en.wikipedia.org/wiki/XOR_swap_algorithm http://en.wikipedia.org/wiki/XOR_swap_algorithm
- jervisfm 14y agoThanks for the pointer.