Which expression accesses the third element of an array named arr in C++?

Options

  • A. arr[1]
  • B. arr[2]
  • C. arr[3]
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. arr[2]

Detailed Explanation

Correct Answer: Option B — arr[2]

Explanation: Since indexing begins at zero, arr[0] is the first element, arr[1] is the second, and arr[2] is the third element.