Sep 17, 2011 at 5:51pm
You need to give your variables an initial value:
1 2 3
|
for(int i; i < 2; i++) // i starts with a random value
for(int i = 0; i < 2; i++) // i starts from 0
|
Last edited on Sep 17, 2011 at 5:51pm
Sep 17, 2011 at 6:00pm
Thank you. I assumed that all variables started at 0.