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