0

Why array index value starts from 0 ? Why not from 1 ?

24th Dec 2016, 10:25 AM
الواجد
الواجد - avatar
2 Respostas
+ 1
1. it has to do with bytes 2. it is easer to say eg. int i < arr.length if it starts from 0 if it would start from 1 this code would let out the last element in the array
24th Dec 2016, 10:45 AM
Kamil
Kamil - avatar