An array is a row of same-type boxes. The first index is 0. The last is n-1.
An array is a row of boxes of the same type, sitting next to each other in memory. The first box is index 0, the last is n-1. You pick a box with a[i].
first
next
last
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. First index is:
Zero-based.
2. a[1] in {1,8,3,5} is:
Second slot.
3. Last index of length 4 is:
n-1.
4. a[4] on this array is:
Do not go to n.
5. A 2-D array would use:
Rows and columns.