title: In C: Difference between main() and int main ()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3711048/difference-between-mainvoid-and-main-in-c">difference between main(void) and main() in c</a>  </p>
  </blockquote>
  
  
  
  <p>I know this is super basic and some other threads already talked about similar questions.  But I have a book (Absolute Beginners Guide to C) where all the code is written within the function main().  The int is always left out.  How is that possible to run?  Is that ok with maybe an older version of stdio.h?<br>
  Here is the sample code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  main()  // not int main()
  {
  printf("This is it\n");
  return 0;
  }
  </code></pre>