adplus-dvertising
frame-decoration

Question

What is the output of C Program?
int main()
{
    int a=9, b=5, c=8;

    if(!(a==9))
    {
        printf("Bear\n");
    }
    else
    {
        printf("Elephant\n");
    }
    
    printf("Fox");

    return 0;
}

a.

Bear
Fox

b.

Elephant
Fox

c.

Fox

d.

Compiler error

Posted under C Programming

Answer: (b).Elephant
Fox

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?