Top

Discussion

What will be the output of the program?

#include
int main()
{
    int a = 300, b, c;
    if(a >= 400)
        b = 300;
    c = 200;
    printf("%d, %d, %d\n", a, b, c);
    return 0;
}

 

  • A.300, 300, 200
  • B.Garbage, 300, 200
  • C.300, Garbage, 200
  • D.300, 300, Garbage

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment