adplus-dvertising
frame-decoration

Question

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

    return 0;
}

a.

No output

b.

Eggs

c.

Kangaroo
Eggs

d.

Compiler error

Posted under C Programming

Answer: (c).Kangaroo
Eggs

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?