[Solved] Access to out of array range does not give any error [duplicate]
Because this is legal C++. You can try to dereference any pointer, even if it’s not allocated by your program, you can try to access any cell of an array, even if it is out of bounds, the legality of an expression doesn’t depend on the values of the variables involved in that expression. The … Read more