Top

Discussion

What is the output of this C code?   

 int main()
    {
        int x = 2, y = 1;
        x *= x + y;
        printf("%d\n", x);
        return 0;
    }

 

  • A.5
  • B.6
  • C.Undefined behaviour
  • D.Compile time error

Answer: D

No answer description available for this question.

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

Post your comment