Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
michaelfairley
· 13y ago · 0 comments
You can also follow the letter in C, Java, etc.:
a ^= b b ^= a a ^= b
Comments
[–]
jervisfm
13y ago
What does that do?
[–]
steveklabnik
13y ago
http://en.wikipedia.org/wiki/XOR_swap_algorithm
[–]
jervisfm
13y ago
Thanks for the pointer.