You beat me to it. The one I got wrong: I said most ANSI C compilers supported volatile const, not all. I guess I get a B+. Another question: "which expression resets the least significant bit in the variable". "Reset"? That means "clear", right? I got it right, because only one of the expressions actually changed the value of the variable.
In the whole survey, I found one question that was actually relevant and specific to writing C in embedded environments: when do you declare a variable volatile. The answer was "All of the above".
So yeah, not a good quiz.
There is one thing Hacker News has to learn from this article: silly little quizzes like this have spectacular PR value relative to the amount of effort they take to generate.
Comments
You beat me to it. The one I got wrong: I said most ANSI C compilers supported volatile const, not all. I guess I get a B+. Another question: "which expression resets the least significant bit in the variable". "Reset"? That means "clear", right? I got it right, because only one of the expressions actually changed the value of the variable.
In the whole survey, I found one question that was actually relevant and specific to writing C in embedded environments: when do you declare a variable volatile. The answer was "All of the above".
So yeah, not a good quiz.
There is one thing Hacker News has to learn from this article: silly little quizzes like this have spectacular PR value relative to the amount of effort they take to generate.