C++: what are lambda functions?
Example:
auto func = [](int x, int y) -> int { return x + y; };
Lambda functions are anonymous inline functions.
Solution:
int sum = func(5, 6); // Returns 11
Example: Solution:C++: what are lambda functions?
Lambda functions are anonymous inline functions.
auto func = [](int x, int y) -> int { return x + y; };
int sum = func(5, 6); // Returns 11