title: function prototypes in main or before main in C
body: <p>Should the function prototype in C be in main or before main. I was taught before main, but my friends class book shows it in main. Which is the correct way?</p>
  
  <p>His book shows it:</p>
  
  <pre><code>int main()
  {
      void numberTable();
  
      numberTable();
  }
  
  void numberTable()
  {
      int num;
      ...rest of the code...
  }
  </code></pre>