1006
GB
What is the output: try{new int[1000000000000];}catch(bad_alloc& e){cout<<'M';}
IN
आउटपुट क्या है: Try{new int[1000000000000];}catch( Bad_alloc& e){cout
A
M
एम
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
D
Crash
टकरा जाना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
new throws bad_alloc on failure. Output: M.
व्याख्या (हिन्दी)
विफलता पर new Bad_alloc फेंकता है। आउटपुट: एम.