In general, the index of the first element in an array is __________
Answer: D
Correct answer: 0
Array indexing begins at 0 in C, C++, Java, Python and most other languages. The reason is that the index is an offset from the base address: the address of element \(i\) is \(\text{base} + i \times \text{size}\), so the first element sits at an offset of zero.
Please log in or register to report this question.