What shall be the output of this program?
#include<iostream>
using namespace std;
int main()
{
 int a = 2;
 auto check = [](int x) 
        {
  if(x == 0)
   return false;
  else
   return true;
 };
 cout<<check(a)<<endl;
 return 0;
}

Posted on by