Answers to questions on arrays
- What is the highest legal index for the following arrays?
- int arr1;
- double means;
Remember that indices start at zero and go to one less than the
size (in elements) declared for the array.
- Which of the following identifiers are declared as arrays?
- int i, j, k;
Only j is an array.
- float r,s,t,u;
r,s and u are all arrays, t is a simple float.
Back to the questions
Back to notes on arrays