1876
GB
What is the output: try{int* p=nullptr;if(!p)throw bad_alloc();}catch(bad_alloc&){cout<<'B';}
IN
आउटपुट क्या है: Try{int* p=nullptr;if(!p)throw Bad_alloc();}catch( Bad_alloc&){cout
A
B
बी
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
throw bad_alloc(); caught. Output: B.
व्याख्या (हिन्दी)
Bad_alloc() फेंकें; पकड़ा गया। आउटपुट: बी.