Exception Handling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Exception Handling

How to determine the maximum array index?

1st Dec 2016, 7:25 AM
Mellian C. Cordero
Mellian C. Cordero - avatar
2 Answers
+ 6
ha array an maximum index an katapusan ex. {1,2,3} an imo pagstart pag ihap 0,1,2 so an maximum array index 2 hahahahaha
1st Dec 2016, 7:30 AM
Jay Ashley D. Gabani
Jay Ashley D. Gabani - avatar
+ 3
you can get the length with NameOfArray.Length. Just decrease it by one to get the maximum index.
1st Dec 2016, 8:03 AM
Ziturion
Ziturion - avatar