1e: this is undefined behavior (-Wsequence-point) x can be literally anything.
3. a typical mistake that the compiler both warns about and that anyone who has taken a course on C should be able to immediately recognize
bonus 1. void main(int)???
This test is indeed quite evil, especially considering it was for freshman students. I have to admit, though, that the bonus question was great.