16
GB
What is the output: try{throw 1;}catch(long l){cout<<'L';}catch(int i){cout<<'I';}
IN
आउटपुट क्या है: प्रयास करें {थ्रो 1;} कैच (लॉन्ग एल) {काउट
A
L
एल
B
I
मैं
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
No implicit conversion in exception catching; int matches catch(int) not catch(long). Output: I.
व्याख्या (हिन्दी)
अपवाद पकड़ने में कोई अंतर्निहित रूपांतरण नहीं; int कैच (int) से मेल खाता है, कैच (लंबा) से नहीं। आउटपुट: मैं.