526
GB
The output of: int x=0; function f=[&](int n){return n<=0?x:(x+=n,f(n-1));}; cout<
IN
का आउटपुट: int x=0; फ़ंक्शन f=[&](int n){रिटर्न n
A
15
15
B
5
5
C
10
10
D
Error
गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Recursive lambda via std::function: 5+4+3+2+1=15.
व्याख्या (हिन्दी)
std::function के माध्यम से पुनरावर्ती लैम्ब्डा: 5+4+3+2+1=15।