+ 1

Exception Handling

How to determine the maximum array index?

1st Dec 2016, 7:25 AM
Mellian C. Cordero
Mellian C. Cordero - avatar
2 Antworten
+ 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