How do you check if memory allocation by 'new' was successful in C++?
Checking if the pointer is null
Using the isAllocated() function
Catching an exception
Both A and C
This question is part of this quiz :