Top

Discussion

What is the output of this C code?    

int main()
    {
        int a = 10, b = 10;
        if (a = 5)
        b--;
        printf("%d, %d", a, b--);
    }

 

  • A.a = 10, b = 9
  • B.a = 10, b = 8
  • C.a = 5, b = 9
  • D.a = 5, b = 8

Answer: C

No answer description available for this question.

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

Post your comment