Segmentation fault is a runtime fault caused due to invalid memory accesses
Segmentation fault can be caused in the following scenarios:
1. When a pointer points to an invalid address
2. When a program tries to access a read-only memory section
3. Freeing a memory which is already freed in the past
No comments:
Post a Comment