How does Java update variable value?
So, the output of this function is 0.
It is only possible if java updates the values once the entire statement precending ‘;’ has completed. If that is the case, then what’s the point of having an equal to operation?
Shouldn’t it correspond to, z =x +y-(x+y);