I am learning to write lamda expression in cpp, Below is the code
#include<iostream>
using namespace std;
int main()
{
int k = 98;
int l = 23;
auto lm_add = [k,l](int i, int j) {
return i + j;
};
cout << "addition using lambada : " << "cool" << lm_add << endl;
return 0;
> wanted to return the answer for given variables
New contributor
parihar SoftwreDeveloper is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.