Home > Output of c++ program

What is the output of below program ?

int main()
{
if(0)
{
cout<<“Hi”;
}
else
{
cout<<“Bye”;
}
return 0;
}

A)  Hi
B)  Bye
C)  HiBye
D)  Compilation Error
Answer: Bye

    Leave a Comment

    Your email address will not be published. Required fields are marked *