Re:Google's “Director of Engineering” Hiring Test
by philjr on Thursday October 13, 2016 @12:38PM
(#12702014)
But not if you're a literal lunatic who thinks that because you literally used the word return with an error code that's what it returns. And. Only. That.
[ Parent
| on HN ]
Re:Google's “Director of Engineering” Hiring Test
by gknoy on Thursday October 13, 2016 @02:29PM
(#12702932)
To be fair, the rest of the questions were demonstrably pedantic, and I would completely expect a question like this to be on the bill of fare:
Q: What does lstat return?
A: A struct
>> Wrong, it returns an error code
That type of technical specificity about what well-known functions return is absolutely something I've heard people use as an interview question. Knowing it returns an error code (rather than the value you want) seems like a good indicator of "has actually coded in C" (whereas many other languages return the value you want and raise an exception if it had an error).