Q. What is the output of the following code?
Code:int x = 10; System.out.println(x++);
β
Correct Answer: (A)
10
Explanation: The value of x is printed before it is incremented.