1801
GB
What is the output: class A{int x=0; public:int get()const{return x;} void f(){x++;} void g(){f();f();f();}}; A a; a.g(); cout<
IN
आउटपुट क्या है: class A{int x=0; सार्वजनिक:int get()const{return x;} void f(){x++;} void g(){f();f();f();}}; ए ए; a.g(); अदालत
A
3
3
B
1
1
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
g() calls f() 3 times: x=3. Output: 3.
व्याख्या (हिन्दी)
g() f() को 3 बार कॉल करता है: x=3। आउटपुट: 3.