The following example might be surprising. It comes from
http://www.jchq.net/mockexams/exam3.htm, question 54...
Evaluating the line in bold, I would have guessed that the right-hand side gets evaluated to 0, is assigned to i on the left, then i on the right gets incremented, therefore i = 1. In fact, the answer is 0. Why?
Thanks,
jdmaddison