What is the output of this code
#includeiostream
using namespace std;
int main()
{
int a = 2;
auto check = [=]()
{
a = 4;
};
check();
cout"Value of a: "aendl;
return 0;
}

Posted on by