Question PRG-JAVA-0043
MediumWhat is the output of this program?
public class Main {
public static void main(String[] args) {
int x = 5;
x = x++ + ++x;
System.out.println(x);
}
}
- A.
10
- B.
11
- C.
Sign up free to see the answer and a step-by-step explanation.