Is it possible to have negative index in an array?
Is it possible to have negative index in an array?
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.
Comments
Post a Comment