adplus-dvertising
frame-decoration

Question

Guess the output of the following program ?
#include<stdio.h>
int main()
{
    int a = 100, b = 200, c = 300;
    if(!a >= 500)
        b = 300;
    c = 400;
    printf("%d,%d,%d",a, b, c);
    return 0;
}

a.

100,300,300

b.

100,200,400

c.

100,200,300

d.

100,300,400

Posted under C Programming

Answer: (b).100,200,400

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Guess the output of the following program ?