Why array index start from 0 ,Is any reason behind it or not??? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

Why array index start from 0 ,Is any reason behind it or not???

3rd Sep 2017, 7:12 AM
mohit thakor
mohit thakor - avatar
6 ответов
+ 7
thats an interesting question
3rd Sep 2017, 7:13 AM
Changed
Changed - avatar
+ 9
the index is not really an index . it is simply an offset that is distance from the start of array. the first element is at the start of array so there is no distance therefore the offset is zero //seen from net , hope it helps ☺
3rd Sep 2017, 7:16 AM
Changed
Changed - avatar
+ 6
i am not sir , i am student & u r bhaiya for me
3rd Sep 2017, 7:18 AM
Changed
Changed - avatar
- 1
Every numbering system starts with zero.
3rd Sep 2017, 5:54 PM
Aseel Najjar
Aseel Najjar - avatar