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