View Single Post
  #2 (permalink)  
Old July 9th, 2004, 06:00 AM
nokomis nokomis is offline
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, case 1 gives me 15. That is what I would expect;

++i (3) + i++ (3) * ++i (4)

3 + (3*4) = 15!

++i is not augmented until completion of the statement but i has the value 3 because of the leftmost incrementation.

Georges
Reply With Quote