+ 1
How to get rid of segmentation fault in C?
Used struct as pointers to integrate linked list
2 Answers
+ 7
You can paste link to your code to get better help from community, without code it is hard to say what is missing or problem in code which is causing that error.
You can see this lesson and its comment section which have many linked list implementation using struct by C.
https://www.sololearn.com/learn/634/?ref=app
+ 4
Segmentation fault occurs mainly because your program is trying to use illegal memory location. This can happen in many ways.
Here are some ways to detect what is causing this runtime errorđ
https://kb.iu.edu/d/aqsj