Negative index of array

what does the negative index in array implies and why its value is 0
ex->a[-1];

hello @guptanikhil898
first of all negative indexing is not allowed .
some new compiler take negative index value to 0 by default.

if we write
a[i] then it is equivalent = *(a+i)
so
a[-i] is equivalent to = *(a-i).

accessing negative index is bad practice and one should avoid doing it.