Do Not Read Out of Bounds
摘要
Trying to access an array element that is not there invokes undefined behavior. We say we are reading out of bounds. The following example demonstrates a common scenario of trying to access a nonexistent, out-of-bounds array element: