02/21/00
COM1100 Winter2000 Yuhong Yin
7
Array variable declaration
nGood programming practice requires the number of array
nitems be defined as a constant before declaring the array.
nThus, the previous array declaration would be declared using
ntwo statements, such as:
n const int NUMBER = 5;
n double temp[NUMBER];
n 
n const int ARRAYSIZE = 4;
n  char codes[ARRAYSIZE];
n 
n const int MAXSIZE = 6;
n int grades[MAXSIZE];