02/21/00
COM1100 Winter2000 Yuhong Yin
10
How to access individual elements in an array?
nThe subscript contained within brackets need not to be an constant integer nAny expression that evaluates to an integer may be used as a subscripts.
n 
nExamples:
n int i = 2;
n temp[i]; // the same as temp[2]
n temp[ i * 2]; // the same as temp[4]
n