Let's say I have the following code:
int x = 5;
System.out.println(x++); // Will print 5
System.out.println("Random code"); // Will write "Random code"
System.out.print(x): // Will write 6
My question is: On what line is x actually incremented? Immediately after the postfix? Or right before when the variable is called next in order?
I have heard about sequence points having something to do with the postfix and prefix operators. This is mainly why I asked.