1
GB
What is the output: class A{public: int x=5;}; A a; cout<
IN
आउटपुट क्या है: class A{public: int x=5;}; ए ए; अदालत
A
5
5
C
Undefined
अपरिभाषित
D
Compile error
संकलन त्रुटि
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
In-class member initializer sets x=5. Output: 5.
व्याख्या (हिन्दी)
इन-क्लास सदस्य इनिशियलाइज़र x=5 सेट करता है। आउटपुट: 5.