array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

array

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

30th Apr 2020, 2:30 PM
ABUBAKAR AHMED ALI
ABUBAKAR AHMED ALI - avatar
1 Answer
+ 2
as there are 3 elements in the array so the maximum index should be the last one which is 2
30th Apr 2020, 2:41 PM
Arsenic
Arsenic - avatar