0 votes
in C Plus Plus by
Is it possible to have negative index in an array in C Language?

1 Answer

0 votes
by
Yes it is possible to index with negative value provided there are data stored in this

location. Even if it is illegal to refer to the elements that are out of array bounds, the compiler

will not produce error because C has no check on the bounds of an array.

Related questions

+2 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
+2 votes
asked May 31, 2020 in JAVA by SakshiSharma
...