I am having an odd error when I try to compile my code, which is written in C. The error says
segmentation fault (core dumped)
In my code,
You've encountered a "Stack Overflow"; basically, you've exhausted the stack space available to your program.
If you allocate the arrays on the heap (in heap storage), you probably will be okay.
With C, you'd likely use the malloc instruction to allocate the memory.
And of course, you'll remember to use the free instruction to return the memory when you're done with it.