如果存在 fencepost 错误(超过数组末尾运行),程序就会产生保护错误,并立即结束。
If there is a fencepost error (running off the end of an array), your program will immediately exit with a protection error.
它还提供三种访问数组元素的方法:标准索引、创建子数组和切片(slicing),切片能产生维数更小的数组片段的视图。
It also provides three methods for accessing array elements: standard indexing, creating subarrays, and slicing, which produces a less dimensional view of an array segment.
使用内存工具运行相同应用程序会在第四行产生一个数组边界违规的报告。
Running the same application with a memory tool results in a report of an array-bounds violation on the fourth line.
应用推荐