What is the index of the first element in a C++ array?

Options

  • A. 1
  • B. -1
  • D. More than one of the above
  • E. None of the above

Detailed Explanation

Correct Answer: Option C — 0

Explanation: C++ arrays use zero-based indexing. For example, the first element of int a[5]; is accessed using a[0], and the last element is a[4].