Why index of array starts from 0?
Array Introduction
Array represents a contiguous memory and it represents the collection of similar elements, thus it starts from 0 and end upto n-1, Thus array index starts from 0.
Why index of array starts from 0?
Array represents a contiguous memory and it represents the collection of similar elements, thus it starts from 0 and end upto n-1, Thus array index starts from 0.