Segmentation fault (core dumped)

一般是对内存操作不当造成的,常见的有:

 (1)数组超出范围。

(2)修改了只读内存。

(3)修改了只读内存。

原文地址:https://www.cnblogs.com/boyiliushui/p/4474279.html