In the array declaration
double score[5];
state the following:
a. The array name
b. The base type
c. The declared size of the array
d. The range of values that an index for this array can have
e. One of the indexed variables (or elements) of this array
Consider the given delclaration of array:
double score[5];
a)
The array name is "score".
Explanation: The variable name "score" contains square braces in given array declaration. It represents the array name.
b)
The base type is "double".
Explanation: The base type means data type of the array. In given array declaration contains "double" data type. It accepts an interger and floting type values for the array.
c)
The declared size of the array is "5".
Explanation: Inside braces value represents the size of the given array. The array name 'score' contains the size is 5 in given array declaration.
d)
The range of values that an index for this array can have 0 through 4.
Explanation: The declaration of array range "score[5]" defines range 0,1,2,3, and 4. The index of given array is score[0],score[1],score[2],score[3],score[4].
e)
One of the indexed variables (or elements) of this array represents any of score[0],score[1],score[2],score[3],score[4].