📜  运行时错误 sigsegv - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:51.456000             🧑  作者: Mango

代码示例1
A SIGSEGV is an error(signal) caused by an invalid memory reference or a 
segmentation fault. You are probably trying to access an array element out of 
bounds or trying to use too much memory. Some of the other causes of a 
segmentation fault are : Using uninitialized pointers, dereference of NULL 
pointers, accessing memory that the program doesn’t own.