DEV Community

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

Collapse
 
siatwe profile image
Simon Weis • Edited

A = 00000000000000000000000000101010
B = 00000000000000000000000001111110

A = A or B = 00000000000000000000000001111110
B = A and B = 00000000000000000000000000101010