Stdle #140 · modern · 2026-10-24
What does this C++ snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
#include <iostream>int main() { auto makeAdder = [](int n) { return [n](int x) { return x + n; }; }; auto add10 = makeAdder(10); std::cout << add10(5) << "\n";}Modern