D
David White
Peter Ammon said:A friend was asked "How many ways are there to create an object in C++?"
in an interview. Apparently, the "right" answer was eleven. Does
anyone know how the interviewer arrived at that number? Is this fact
well known (if true)?
On the face of it, one of these answers seems appropriate:
1. "Who cares?"
2. "You're wasting my time. Good day."
I seriously doubt that even Bjarne Stroustrup would have been able to give
them the number they were looking for. However, the question might be
cleverer than it looks. You can't rule out that an answer such as one of the
above (or a more polite equivalent) is what the interviewer is looking for.
Fumbling around nervously for the right number might be what rules you out.
DW