The four common mistakes that lead to segmentation fault:
- Dereferencing NULL
- Dereferencing an uninitialized pointer
- Dereferencing a pointer that has been freed or that has gone out of scope
- Writing off the end of an array
Home » Programming Tools » When will the runtime error, “segmentation fault” occur?
The four common mistakes that lead to segmentation fault: