02/21/00
COM1100 Winter2000 Yuhong Yin
9
How to access individual elements in an array?
nAny individual element can be accessed by giving the name of the array and the element’s position.
nThis position is called the element’s index or subscript value. 
nFor a single-dimensional array, the first element has an index of 0
nThe index or subscript value gives the position of the element in the array.
ntemp[0] is read as “ temp sub zero”
ntemp[1] is read as “ temp sub 1”