Why is this indexing the array?
In the Wikipedia article for “Undefined behaviour”, there is a section showing that this is undefined behaviour in C/C++:
In the Wikipedia article for “Undefined behaviour”, there is a section showing that this is undefined behaviour in C/C++: