G
Q. Which of the following is the correct way to define a function with a lambda expression in C++?
- Correct Answer - Option(A)
- Views: 77
- Filed under category C++
G
The correct way to define a function with a lambda expression is 'auto myFunction = [](int x) { return x * x; };'.
You must be Logged in to update hint/solution
Discusssion
Login to discuss.