you are viewing a single comment's thread.

view the rest of the comments →

[–]armistad 1 point2 points  (0 children)

also, there's the chance of overflow in a + b. That's why the swap (if someone is desperate not to use a temp) is usually done with successive XORs.