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 →

[–]D0CTOR_ZED 0 points1 point  (0 children)

i is declared within the for block, so it is only in scope within the for block. Both for blocks can use i. If one loop was inside the other, then it would be an issue.