The variable named index

(Display Listing 1.)

Listing 1 also declares a counting variable named index.

The initial value of index is immaterial because:

Its value is set to 0 immediately before the execution of the while loop.