Computer Applications

Which element is num[9] of array num?

  1. 8th
  2. 9th
  3. 10th
  4. 11th

Java Arrays

14 Likes

Answer

10th

Reason — Array index begins from 0 to size - 1. Thus, num[0] is the 1st element, num[1] is the 2nd element, num[2] is the 3rd element and so on. So, num[9] is actually the 10th element of the array.

Answered By

11 Likes


Related Questions