DEV Community

Discussion on: Swap two numbers without using a temporary variable

Collapse
 
kenbellows profile image
Ken Bellows

This is a very old school trick that is still useful on contexts like embedded development where you have very limited memory available.