91
GB
What is the output: class A{public:int x,y; A(int a,int b):x(a),y(b){} auto operator<=>(const A&)const=default;}; A a{1,2},b{1,3}; cout<<(a
IN
आउटपुट क्या है: class A{public:int x,y; A(int a,int b):x(a),y(b){} ऑटो ऑपरेटर(const A&)const=default;}; ए ए{1,2},बी{1,3}; अदालत
A
10
10
B
01
01
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Lexicographic: (1,2)<(1,3)=1; (1,2)==(1,3)=0. Output: 10.
व्याख्या (हिन्दी)
शब्दकोष: (1,2)