Question #20025

3-8. An array a has 30 elements; what is the index of its last element?

Expert's answer

Theindex of last element is 29, because first index = 0.

In JAVA when you create an array with N elements, last index always N-1, first index 0, array.lengthl = N;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS