+ 2
What is segmentation fault while using arrays
How to remove it
1 Respuesta
+ 6
A good explanation of segfault:
https://stackoverflow.com/questions/2346806/what-is-a-segmentation-fault
There are a number of reasons why it happens, one of the most common ones being accessing invalid address using a pointer. If you want us to fix your code, you can post it in the thread description so that we can have a look.