Question.1
A developer writes a lambda:
int threshold = 50; auto check = [threshold](int val) { return val > threshold; }; printf("%d", check(60));
What are the three parts of the lambda?
Select Answer
[threshold] = return type, (int val) = capture, {} = parameters
[threshold] = capture clause (imports threshold), (int val) = parameters, {} = function body
[threshold] = template, (int val) = constructor, {} = destructor
All three parts are optional