array | SoloLearn: Learn to code for FREE!

0

array

What is the maximum index of the following array? int[] arr = new int[] { 4, 5, 8 };

4/30/2020 2:30:45 PM

ABUBAKAR AHMED ALI

1 Answer

New Answer

+2

as there are 3 elements in the array so the maximum index should be the last one which is 2