Question.4
A developer stores a callback lambda:
auto callback = [](int err) { log_error(err); }; callback(42);
Why is auto required here?
auto
Select Answer
auto is optional -- you can use void(*)(int) instead
Lambda types are compiler-generated and unnamed -- auto is the only way to store a lambda in a variable
auto is required for all function pointers
Lambdas cannot be stored in variables