Thread
:
Need help - C++ beginner
View Single Post
#
2
(
permalink
)
July 9th, 2004, 06:00 AM
nokomis
Authorized User
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
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
nokomis
View Public Profile
Find all posts by nokomis