Need Assistance?

support@tutorialshub.in

Debugging & C Interview Prep

Fixing Segmentation Faults (SIGSEGV)

ADVERTISEMENT
C Programming Free Lesson
5 min read
ADVERTISEMENT

A Segfault happens when you dereference a NULL pointer, write past an array's bounds, or forget & in scanf("%d", &n). Compile with -g and inspect with gdb.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you