why am i getting a segmentation fault?
Segmentation fault
Here is the changed code https://ide.codingblocks.com/s/266561
The hackerblocks ide was throwing segmentation fault for declaring an array of this size inside the main function, so I just made them global. Now itβs working.
1 Like