436
GB
What is the output: template struct Box{T val; Box(T v):val(v){}}; Box b(42); cout<
IN
आउटपुट क्या है: टेम्पलेट स्ट्रक्चर बॉक्स {टी वैल; बॉक्स(टी वी):वैल(वी){}}; बॉक्स बी(42); अदालत
A
42
42
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
C++17 CTAD deduces T=int from Box(42). val=42. Output: 42.
व्याख्या (हिन्दी)
C++17 CTAD, Box(42) से T=int निकालता है। वैल=42. आउटपुट: 42.