+ 1

How to get rid of segmentation fault in C?

Used struct as pointers to integrate linked list

13th Mar 2020, 6:42 AM
Ayush Dubey
Ayush Dubey - avatar
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
13th Mar 2020, 6:53 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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
13th Mar 2020, 6:49 AM
Arsenic
Arsenic - avatar