Phone interview question: What happens when the "new" operator in C++ fails?
Sigiloso
I actually admitted that I didn't know the answer for sure, but I guessed that it would throw an exception. She said that it actually depends on the implementation; some will throw an exception, and some will return NULL, like "malloc". She sounded satisfied with my answer, though.