+ 4
Why the array index start from 0 ?
array
5 Answers
+ 5
Read your answer here:
http://cs-fundamentals.com/tech-interview/c/why-array-index-in-c-starts-with-0.php
+ 2
Because it indicated the number of elements to its left.As for negative indices, they indicate how much the positive index differs from the length of the array
+ 2
In some other languages it starts at 1, but essentially the usual reason is because 0 makes more sense than 1 in computing when you bring binary into question.
0 is the smallest number that can represented in binary, therefore you save a bit by starting from 0. For example,
starting from 0 in binary:
0, 1, 10, 11, 100, 101, etc
starting from 1 in binary:
1, 10, 11, 100, 101, etc
+ 1
it's based on what happens when reserve memory on RAM
+ 1
Because.
Binary numbers
Computers communicate using binary numbers such as 1010001001