title: Where to put the C file to compile and run
body: <p>I know that this question might already be on the site and I have looked at <a href="https://stackoverflow.com/questions/10809834/where-to-put-the-file-and-how-to-compile-and-run-it">this</a>, but I haven't been able to fix the issue I have been having.</p>
  
  <p>Today I got a C programming book just to look into it. However, I can't get further than page 17 because I can't seem to be able to get a piece of code to compile. I'm using the Cygwin Terminal and I have tried to follow all the steps to get it to work but in the book it doesn't specify exactly how to make it compile.</p>
  
  <p>The path to my script is <code>C:\Users\Shawn\Desktop\C\hello.c</code> but when I try to run it any kind of way:</p>
  
  <pre><code>gcc C:\Users\Shawn\Desktop\C\hello.c
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>gcc /Users/Shawn/Desktop/C/hello.c
  </code></pre>
  
  <p>I just get the follow:</p>
  
  <pre><code>$ gcc C:\Users\Shawn\Desktop\C\hello.c
  gcc: error: C:UsersShawnDesktopChello.c: No such file or directory
  gcc: fatal error: no input files
  compilation terminated.
  </code></pre>
  
  <p>I have no idea how to get the terminal to find the correct file.</p>