What will be the output of the following C++ program?


#includeiostream
using namespace std;
int main()
{
int a = 5;
auto check = [=]()
{
a = 10;
};
check();
cout"Value of a: "aendl;
return 0;
}

Posted on by