About Question enthuware.ocajp.i.v7.2.1238 :
Posted: Sun Feb 02, 2014 1:29 pm
Regarding
Cheers.
Why doesn't it equate to k = 2 + 3 + 2 if k is incremented?This becomes (remember that k = 1 at this point): k = 1 + 3 + (++k) i.e. k = 1 + 3 + 2; (at this point value of k is 2 because of ++k). But the value of Right Hand Side has not yet been assigned to k. k = 6; 6 is assigned to k thereby overwriting the value of 2.
Cheers.