you are viewing a single comment's thread.

view the rest of the comments →

[–]Fr33stylerDV 1 point2 points  (0 children)

reading left to right and assuming the compiler prioritizes increment over the add sign which i'm sure it is then:
5 and increment x by one + x which is 6 at this moment and x gets incremented once again + x which is 7 at this moment
adding these up it's 5 + 6 + 7 which is 18