391
GB
What is the output: promise p; future f=p.get_future(); thread t([&p]{p.set_value(42);}); t.join(); cout<
IN
आउटपुट क्या है: वादा पी; भविष्य f=p.get_future(); थ्रेड t([&p]{p.set_value(42);}); टी.जुड़ें(); अदालत
B
42
42
C
Error
गलती
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Promise sets value; future.get() receives it.
व्याख्या (हिन्दी)
वादा मूल्य निर्धारित करता है; Future.get() इसे प्राप्त करता है।