Computer Applications

What is the highest index of any array with 100 elements?

  1. 100
  2. 101
  3. 99
  4. 98

Java Arrays

2 Likes

Answer

99

Reason — Arrays are zero-indexed, meaning the first element of the array is at index 0. Therefore, an array with 100 elements has indices ranging from 0 to 99. Hence, the highest index is 99.

Answered By

1 Like


Related Questions