When arrays are created, the number of elements is set and unchangeable, which means we can't access an element that doesn't exist. In the topPlayerScores example, the array length is 3, so the range of valid indices is from 0 to 2. Any index of 3 or higher is out of the array's range and will generate an aptly-named IndexOutOfRangeException in the console:
Good programming habits dictate that we avoid range exceptions by checking whether the value we want is within an array's index range, which we'll cover in the Iteration statements section.
Arrays aren't the only collection types C# has to offer. In the next section, we'll deal with lists, which are more flexible and more common in the programming landscape.