931
GB
What is the output: class A{int x; public: A(int v):x(v){} bool operator==(const A& o)const{return x==o.x;} bool operator!=(const A& o)const{return !(*this==o);}}; A a(3),b(3),c(4); cout<<(a==b)<<(a!=c);
IN
आउटपुट क्या है: class A{int x; सार्वजनिक: A(int v):x(v){} bool ऑपरेटर==(const A& o)const{return x==o.x;} बूल ऑपरेटर!=(const A& o)const{return !(*this==o);}}; ए ए(3),बी(3),सी(4); अदालत
A
11
11
B
10
10
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
3==3=1, 3!=4=1. Output: 11.
व्याख्या (हिन्दी)
3==3=1, 3!=4=1. आउटपुट: 11.