71
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main()
{
int x = 5;
auto check = []() -> bool
{
if(x == 0)
return false;
else
return true;
};
cout<<check()<<endl;
return 0;
} Answer & Solution
Answer: Option
C
No explanation is given for this question. Let's Discuss on Board