$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #234
What is the output?
int x = 5; x = x++; System.out.println(x);
5
6
4
7
x++ yields the old value 5, then the assignment writes that 5 back over the incremented x.
Play Problem Solving ▸
◂ #233
all Problem Solving — predict the output questions
#235 ▸