From "Effective C++ 3rd edition by Scott Meyers":
To emphasize that the results of undefined behavior are not predictable and may be very unpleasant, experienced C++ programmers often say that programs with undefined behavior can erase your hard drive.
Under what circumstances can this happen?
For example, can accessing and writing to locations out of array range corrupt memory that doesn't belong to this C++ program or thread?
See Question&Answers more detail:os