DEV Community

Discussion on: How can you swap two variables without using a third?

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

When I started going through the comments, I was actually thinking "what about bitwise xor?" And sure enough, here it is. ^,^