+ 1

Why index in array start from 0?

15th Sep 2016, 3:36 PM
Aman
2 Respuestas
+ 5
A pointer (array) is a memory direction and index is an offset of that memory direction, so the first element of the pointer (array) is the one who offset is equal to 0.
15th Sep 2016, 4:59 PM
Richard Blackburn
Richard Blackburn - avatar
0
because that's that, you remember it and code on
16th Sep 2016, 12:53 PM
Божидар Димитров
Божидар Димитров - avatar