title: What is the syntax error near '(' in my program?
body: <p>I've just started coding in C, but no no matter what I try, I keep on getting a syntax error. "Syntax error near unexpected token '('"</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
  printf("Hello World");
  return 0;
  }
  </code></pre>
  
  <p>I've tried compiling it by using</p>
  
  <pre><code>gcc helloworld1.c -o helloworld1
  cc helloworld1.c -o helloworld1
  </code></pre>
  
  <p>and it compiles without errors, but it always screws up and gives me the syntax error message when I try to run it. Any help at all would be appreciated. Thanks!</p>