So I'm kinda confused by this thing i've encountered last night. When i write my code like this
To get the odd numbers in this array the count value is 5,but when I write it like this the output is 7
Obviously the second code is right, but why is the first code not working properly, why does the field[i] make such a big diffrence?
Thanks!