Addition assignment += behavior in expression
Remember that a += x really means a = a + x. The key point to understand is that addition is evaluated from left to right — that is, the a in a + x is evaluated before x. So let’s figure out what b = (a += (a += a)) does. First we use …