quote:Original post by hplus0603
Brother Bob: the problem is that you index your array of two items using indices 1 and 2. You should use indices 0 and 1.
What I''m trying to show with the code is that writing outside the array can cause surprising effects. Writing to foo2[1] also was a bit redundant, maybe I should have written to foo2[2] only (apart from foo1) to show the effect.