title: Confusion regarding the use of different files for the same program in C
body: <p>I have som trouble understanding some concepts when it comes to C and different files (I'm used to Java). F.ex. in the file where I have main I need to use another .c file which contains code that is needed to run my program. I have included this file, but I have read that this isn't recommended. What is the right way to include another .c file? </p>
  
  <p>Also, my code is very long (over 1000 lines), so I would like to split into separate files to make it easier to read. How do I do this? I have searched for answers (of course), but I still can't understand it. </p>