+ 1
Why arrays start with zero
Does anyone know the real reason behind this logic??.if you know tell your logic here,also don't Google otherwise you spoil it for everyone.In the end I will tell the real reason if by chance no one can tell
4 Answers
+ 2
Convention from old languages. Arrays used to be pretty much pointers with range, index marking the distance to look from start. Distance of start from start is 0.
+ 1
BlazingMagpie
All compiled languages hold arrays as pointers because that's how machine language works.
- 1
Real programmers count from zero