C++ why accessing elements outside of an array is allowed even though it is undefined? [duplicate]

  arrayaccess, arrays, c++

I was wondering why accessing elements outside of array bound is allowed when it is clearly mentioned as undefined.

Source: Windows Questions C++

LEAVE A COMMENT