错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Do Not Read Out of Bounds

  • Slobodan Dmitrović

摘要

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: