Arrays in C#

If you change the for loop in the program to for(int j = 0; j < 6; j++) you will get a runtime exception.


Please note that it is the programmer's responsibility to make sure that the subscript is never less than 0 or more than the size. Doing so will result in an "Index Out of Range exception".

NEXT: Use timer to cycle through colors in an array