Top

Discussion

What will be the output of the program?

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

 

  • A.b = 300 c = 200
  • B.b = 100 c = garbage
  • C.b = 300 c = garbage
  • D.b = 100 c = 200

Answer: D

No answer description available for this question.
 

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

Post your comment