Q. What should be printed on screen?
Code:
int main()
{
int x = 5;
if(x++ == 5)
cout<<"Five"<<endl;
else
if(++x == 6)
cout<<"Six"<<endl;
return 0;
}
β
Correct Answer: (A)
Five