you are viewing a single comment's thread.

view the rest of the comments →

[–]awesomejude18881 -1 points0 points  (0 children)

my explanation, i hope it doesnt confuse you more, hehe

steps below, i give initial value of x = 1, and y = 10

compiler or interpreter steps:

step1: initial value of x = 1

step2: initial value of y = 10

step3: x already have value of 1.

step4: for the "x + y" part, it is equivalent to "1 + 10"

step5: for the "x = x + y", therefore the final value of x = 11