After the first a++
a
becomes 4. So you have 3 * 4 = 12
.
(a
becomes 5 after the 2nd a++
, but that is discarded, because the assignment a =
overrides it)
After the first a++
a
becomes 4. So you have 3 * 4 = 12
.
(a
becomes 5 after the 2nd a++
, but that is discarded, because the assignment a =
overrides it)