Q72
What will be the output of the following C++ code? #include #include using namespace std; int main () try int* myarray= new int[1000]; cout << "Allocated"; catch (exception& e) cout << "Standard exception: " << e.what() << endl; return 0;
A.
Allocated
B.
Standard exception:
C.
bad_alloc
D.
Depends on memory
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board