Top

Discussion

What is the output of this C code?  

int main()
    {
        int a = 10;
        if (a == a--)
            printf("TRUE 1\t");
        a = 10;
        if (a == --a)
            printf("TRUE 2\t");
    }

 

  • A.TRUE 1
  • B.TRUE 2
  • C.TRUE 1  TRUE 2
  • D.No output

Answer: C

No answer description available for this question.

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

Post your comment