If an array has a length of 7, it will have elements 0 through 6. As soon as i equals the array length, it will try to access the 7th element, which isn't there.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:If an array has a length of 7, it will have elements 0 through 6. As soon as i equals the array length, it will try to access the 7th element, which isn't there.
Thanks! That explains everything
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.