segmentation core dumped in c++ code example
Example: Segmentation fault (core dumped)
Core Dump/Segmentation fault is a specific kind of error caused by
accessing memory that “does not belong to you.”
In C++ this can be caused by:
~Accessing an address that is freed
~Accessing out of array index bounds
~Stack Overflow
~Dereferencing uninitialized pointer