adplus-dvertising
frame-decoration

Question

What is the output of C Program?
int main()
{
    int a=9, b=6;
    if(a!=9 || b==6)
    {
        printf("Hockey\n");
    }
    else
    {
        printf("Cricket\n");
    }
    
    printf("Football");

    return 0;
}

a.

Cricket
Football

b.

Hockey
Football

c.

Football

d.

Compiler error

Posted under C Programming

Answer: (b).Hockey
Football

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?