Lots of times i've made small mistakes where indexes of beyond the bounds of an array or a memory allocation. Sometimes it may not cause a problem at all and go by unnoticed.
In C#, which I am used to, any attempt to go beyond the bounds of an array immediately triggers an exception and breaks at that point. But in C++ there may or may not be an exception, and the program might continue normally with an unlucky bug. I'm wondering if there's anything I can do to get the same behavior in C++. Thanks for your help.