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

Posted on by