Re:Interviewing programmers: coding test example explained
by RiderOfGiraffes on Thursday June 03, 2010 @11:18AM
(#1401536)
Actually, they are not the same. See the trivia question in the lunk article.
[ Parent
| on HN ]
Re:Interviewing programmers: coding test example explained
by jemfinch on Thursday June 03, 2010 @11:23AM
(#1401552)
I saw the trivia question in the link article, but it doesn't provide an answer, so I ignored it.
EDIT: K&R says (page 60 in my second edition):
""" The for statement
for (expr1; expr2; expr3)
statement
is equivalent to expr1;
while (expr2) {
statement
expr3;
}
except for the behavior of continue, which is described in Section 3.7.
"""So apparently the trivia is the behavior of `continue`, which I think most C programmers (including myself) would know implicitly, even if we couldn't answer the question itself.
Re:Interviewing programmers: coding test example explained
by RiderOfGiraffes on Thursday June 03, 2010 @12:32PM
(#1401749)
And it's because the knowledge is implicit and used when appropriate without thinking about it, that the question is, in my opinion, pointless as an interview question, except perhaps to see how the candidate reacts to it.