Skip to content

Comment on Why are embedded systems software developers getting a D- in C?parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.