A segmentation fault is essentially an illegal memory access. Illegal memory accesses are usually caused by invalid pointers; e.g., by trying to reference a null pointer or by trying to reference a pointer that points to an object that has been deleted/freed.
What is a segmentation fault?
What is a segmentation fault? Is it different in C and C++? How are segmentation faults and dangling pointers related?
Follow
1
Add comment
More
Report
1 Expert Answer
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.