Can over running of array lead to the catastrophic failures? If ‘Yes’ then why does not C++ provide bound checking on array operations and who is responsible to prevent array overruns?
plz explain in detail...
Yes it can be catastrophic, since you access memory you're not supposed to. For example another object might reside after the end of your array, and by writing after the end of your array, you 'silently' alter the other object.
One reason that does not provide bounds checking is speed, if you want checking, either make a class for it or use std::vector<>
You are responsible to prevent the overruns..