x: 100 y: 99
The expression on the right of the =
can be complicated,
as in the following fragment:
int value = 10 ; int result = 0 ; result = value++ * 2 ; System.out.println("value: " + value + " result: " + result );
Avoid writing such expressions. But some programmers write such expressions. You may encounter such expressions in other programmers' poorly written code.
What does the above fragment print out?