will Index Out Of Array Bounds throw exception or error before core in C++?

前端 未结 1 1523
Happy的楠姐
Happy的楠姐 2020-12-22 13:48

will Index Out Of Array Bounds throw exception or error when coring in C++?

I know if index out of array bound existed, there will exist one undefined actions for th

相关标签:
1条回答
  • 2020-12-22 14:13

    In short, you can never be sure.

    An out of bounds access to an array causes undefined behavior in C++, it won't throw an exception.

    C++ handling unanticipated errors

    0 讨论(0)
提交回复
热议问题