Depending on the environment, a warning, a fatal exception, or unpredictable behavior will occur if the program attempts to access an array element that is outside the range.
The outcome of accessing an array element outside its designated bounds depends on the environment. It may result in a warning, a severe error, or unexpected behavior.