106
GB
What is the output: auto divide=[](double a,double b)->expected{if(b==0)return unexpected("zero");return a/b;}; auto r=divide(10,2); cout<<(r?r.value():-1);
IN
आउटपुट क्या है: ऑटो डिवाइड = [] (डबल ए, डबल बी) -> अपेक्षित {अगर (बी == 0) अप्रत्याशित वापसी ("शून्य"); रिटर्न ए/बी;}; ऑटो आर=विभाजन(10,2); अदालत
A
5
5
B
-1
-1
C
Compile error
संकलन त्रुटि
D
Undefined
अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
b!=0: r=5.0. Output: 5.
व्याख्या (हिन्दी)
बी!=0: आर=5.0. आउटपुट: 5.