DEV Community

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

 
mortoray profile image
edA‑qa mort‑ora‑y

Approach to certain problems... I'm so tempted to do this in an interview:

"What do you do if you're on a team, and somebody is requesting you do something stupid?"

/let them answer/

"Okay, now, how do you swap a variable without a temporary?"

:)

Thread Thread
 
l1x profile image
Istvan

:D

Thread Thread
 
sandordargo profile image
Sandor Dargo

You should do this as an interviewee :D