Spam Classification Using Neural Net solution in c

I have solved the Spam Classification Using Neural Net question from beginner level using c language. But i am getting a runtime error of kind SISSEVG. I have tried many times to remove this error but i am not able to do. In my system, the solution which i have done for this question is working fine in dev c++.
Someone please help me.

Why not you use gdb debugger for finding out segmentation fault or the line where your code is failing. There are many other videos on youtube for any help related to gdb.

In order to recieve help you provide link to the question you are trying to solve and the code which you have written. use (or any similar website) for sharing the code.