Interesting that you now get 18!
++i (3) + i++ (3) * ++i (5) and hence k = 3 + (3x5) = 18
but I would say:
++i (3) + i++ (3) * ++i (4) and hence k = 3 + (3x4) = 15
The i++ term will/should not be implemented until the statement is completed.
Put it on the Borland C++ group and it will bring lots of ideas.
Georges
|