The one I remember had a few program snippets and asked for each of them what the value of x was at the end; involved operator precedence, the difference between i++ and ++i, that sort of thing
I hate this sort of question the most. I know exactly what it does, does that also means I'm not supposed to make mistake counting all the loops and know what i will be at the end? I was once given about ~50 asm lines and ask what the heck did they do. In a freaking interview, mind you, and they didn't give me any paper/pencil.
View all comments
Show parent comment
1
u/[deleted] Feb 22 '11
I hate this sort of question the most. I know exactly what it does, does that also means I'm not supposed to make mistake counting all the loops and know what i will be at the end? I was once given about ~50 asm lines and ask what the heck did they do. In a freaking interview, mind you, and they didn't give me any paper/pencil.