why we get segmentation fault in cpp code example
Example: segmentation fault
Segfaults are caused by a program trying to read or write an illegal memory location
Segfaults are caused by a program trying to read or write an illegal memory location