DEV Community

Discussion on: Swapping two numbers, w/o a temp variable

Collapse
 
glyphcat profile image
GlyphCat

Hmm… what if the variables are of other data types? Just making a guess tho, do people convert those data into bytes then perform the same math?

Collapse
 
hakash profile image
Morten Olsrud

I wouldn't expect people to actually do this, it's more of a puzzle to see if you are able to think outide the box I think.