Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs

How to fix segmentation fault


This is my first attempt at C and I am having trouble with this specific error and I don't know where to fix it.

3 years ago
You are viewing a single comment. View All

Try checking your arrays
A segmentation fault (from what I understand of) is ussualy caused by something wrong with the memory of the program
like int array[1] = {2}, and you calling array[420]

3 years ago