title: How to solve "Segmentation fault (core dumped)" issue in C?
body: <p>I've been stuck with this for a while. I can't really figure out why I'm getting this message:
  I get the error message: &quot;Segmentation fault (core dumped)&quot; when I first compile gcc my_program.c and then run it ./a.out my_program.c</p>
  <p>Main file:
  <a href="https://imgur.com/67jSWje" rel="nofollow noreferrer">https://imgur.com/67jSWje</a>
  Header file:
  <a href="https://imgur.com/ueNGCy1" rel="nofollow noreferrer">https://imgur.com/ueNGCy1</a></p>
  <p>I can't for the life of me figure out where the problem is since C isn't really my friend and it doesn't tell me where the error is in the code.</p>