-
Declare an array which can hold 100 integer height values.
-
Explain why the first element of an array has the subscript 0.
Answers
-
int heights[100] ;
-
The subscript gives the offset of the element from the base of the array, this means that to get to the element at the base of the array you must use an offset of 0.