Top

Discussion

What is the output of this C code?

 void main()
    {
        int a = 5, b = -7, c = 0, d;
        d = ++a && ++b || ++c;
        printf("\n%d%d%d%d", a, b, c, d);
    }

 

  • A.6  -6  0  0
  • B.6  -5  0  1
  • C.-6  -6  0  1
  • D.6  -6  0  1

Answer: D

No answer description available for this question.

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

Post your comment