📜  什么会引发分段错误 - 无论代码示例

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

代码示例1
Attempting to access a nonexistent memory address (outside process's address space)
Attempting to access memory the program does not have rights to (such as kernel structures in process context)
Attempting to write read-only memory (such as code segment)
recursion with faulty base case