Strange behaviour setting pinMode by array

It looks to me the same execution result.

Also, pin 10 is not the end of the array.