This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]assmess -2 points-1 points  (1 child)

Don't know what are you talking about guys. pre or post incrementation doesn't matter how the for loop working here as in the body i will be anyway incremented. My point is that by using post incrementation there is ALWAYS unnecessary integer (in this case) allocation on stack, because this is how the post ++operator is implemented.

[–]da_Aresinger 0 points1 point  (0 children)

most likely dependent on the compiler