DEV Community

Discussion on: Terrible interview question: Swap variables without a temporary

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

That's one of those silly questions because there are so many right answers. My favourite is, "because the hole underneath is round." :)

It's so unoriginal though. If people want to see creativity, and thought process, they should ask unusual things, preferably related to software development.