A
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;
}
{
int x = 5;
if(x++ == 5)
cout<<"Five"<<endl;
else
if(++x == 6)
cout<<"Six"<<endl;
return 0;
}
- Correct Answer - Option(A)
- Views: 22
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.