Home »
MCQs »
C++ MCQs
On failure the 'new' operator returns?
159. On failure, the "new" operator returns?
- NULL
- -1
- bad_alloc exception
- None of these
Answer: C) bad_alloc exception
Explanation:
On failure, the "new" operator returns a "bad_alloc" exception.