76
GB
What is the output: template struct Opt{bool h;T v; Opt():h(false){} Opt(T x):h(true),v(x){} T or_(T d){return h?v:d;}}; Opt a(5),b; cout<
IN
आउटपुट क्या है: टेम्पलेट स्ट्रक्चर ऑप्ट{बूल एच;टी वी; Opt():h(false){} Opt(T x):h(true),v(x){} T या_(T d){return h?v:d;}}; ऑप्ट ए(5),बी; अदालत
A
599
599
B
50
50
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
a has value 5; b empty. Output: 599.
व्याख्या (हिन्दी)
a का मान 5 है; बी खाली. आउटपुट: 599.