Hacker News new | comments | show | ask | jobs | submit login

Question 1 asks about syntax. The behavior of the code is irrelevant.



Except for the the fact that the author writes: "for bonus points, if x is 1 before 1e, what is x after that line?"


Then wouldn't an answer like "x could be anything because of undefined behavior" be correct?

This test is indeed quite evil, especially considering it was for freshman students. I have to admit, though, that the bonus question was great.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: