Programming, Computer Science, Programming Languages, C Programming, Python.
that z and y are assigned the value of x which is 3. If you look at the expression closely, the evaluation of the expression starts from right to left. Firstly the value -z is assigned to x. Hence x gets a value of -3. Then y+=x is evaluated, this is the same as y=y+x and 3+-3, ie 0, and is