adplus-dvertising
frame-decoration

Question

What is the output of C Program?
int main()
{
    int a=9;
    if(a==9);
    {
        printf("Ostrich\n");
    }
    elseif(a==8)
    {
        printf("Eggs\n");
    }
    
    printf("White");

    return 0;
}

a.

White

b.

Ostrich
White

c.

No Ouput

d.

Compiler error

Posted under C Programming

Answer: (d).Compiler error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of C Program?