Computer Applications

A Single Dimensional array contains N elements. What will be the last subscript?

  1. N-1
  2. N
  3. N+1
  4. None

Java Arrays

75 Likes

Answer

N-1

Reason — The array subscripts range from 0 to (n-1), where n is the number of elements in the array.

Answered By

30 Likes


Related Questions