I usually get confused with the ++ operator, please can u try to clarify it.
Code:
supposed x = 10, y = 20
z = x++ + y++;         z=30

now if it is
x = x++ + y++       x=31
how does this happen?