field[i] is the value in the field array at index i. field[i]'s value has no relationship to the value in i.

The first code only looks at the values in i.
The second code looks at the values in...