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