This seemingly small code which swapps 2 numbers is giving me a headache..help!! C++

+ am wondering why would one need to swapp the numbers in real life? trickery? magic

rubberman 1,355

Ancient Dragon 5,243

mike_2000_17 2,669

rubberman
commented:
Elegant. The question is whether 3 xors is more efficient than one stack operation and 3 assignments... Probably! :-) +0

Moschops 683

Learner010 99

rubberman 1,355

Kristian_2 11

mike_2000_17 2,669

Kristian_2 11