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