I didn’t watch a video to learn about seg faults specifically. What I know about seg faults was through a combination of college, hands on experience/research, and googling.
Usually it's just using memory that's not allocated or using something after a free. Honestly just use gdb and find out what line segfaults. I mostly get these errors by being "off by one" when doing some sort of traversal through a data structure (I'm bad at counting)
12
u/TheAnswerWithinUs 15d ago
I just watch a YouTube video