title: Use of 'void' in a function parameter
body: <blockquote>
  <p><strong>Possible Duplicate:</strong> <br />
  <a href="https://stackoverflow.com/questions/693788/c-void-arguments">C void arguments</a></p>
  </blockquote>
  
  <p>I just started with C and I can't find answer to this...</p>
  <p>Is there any difference between</p>
  <pre><code>int foo() { }
  
  int foo(void) { }
  </code></pre>
  <p>Which should I prefer and why?</p>
  <p>Note that this question also goes for: <code>int main</code>. Should it be: <code>int main</code> or <code>int main(void)</code> when I don't want any command-line arguments?</p>