title: error: too few arguments to function `printDay' (C language)
body: <h3>Question</h3>
  <p>I'm fairly new to C and I've got this error when I try to compile it (GCC):</p>
  <blockquote>
  <p><em>error: too few arguments to function `printDay'</em></p>
  </blockquote>
  <p>My questions are:</p>
  <ol>
  <li>What does it mean?</li>
  <li>How do I fix this?</li>
  </ol>
  <p>P.S this is not my full code, it's just this error I'm faced with.
  Thanks in advance.</p>
  <h3>Code</h3>
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  #include &lt;time.h&gt;
  
  #define MAX_DAYS 31
  #define MIN_DAYS 1
  #define MAX_MONTHS 12
  #define MIN_MONTHS 1
  
  enum monthsOfYear
  {
      jan = 1,
      feb,
      mar,
      apr,
      may,
      jun,
      jul,
      aug,
      sep,
      oct,
      nov,
      dec
  };
  
  enum daysOfWeek
  {
      sun = 1,
      mon,
      tue,
      wed,
      thu,
      fri,
      sat
  };
  
  int input();
  void check(int month, int day);
  void printDay(int month, int day, int firstDay);
  
  int main()
  {
      printf(&quot;Hello! Welcome to the day calculator!\n&quot;);
      printDay(input());
      return (0);
  } 
  
  /*this function takes the input from the user
  input: none
  output: the first day
  */ 
  int input()
  {
      enum daysOfWeek day = 0;
      enum monthsOfYear month = 0;
      
      int firstDay = 0;
      
      printf(&quot;Enter month to check: (1-jan, 2-feb, etc) &quot;);
      scanf(&quot;%d&quot;, &amp;month);
      printf(&quot;Enter day to check: &quot;);
      scanf(&quot;%d&quot;, &amp;day);
      check(month,day);
      printf(&quot;Enter the weekday of the 1st of the month: (1-Sunday, 2-Monday, etc) &quot;);
      scanf(&quot;%d&quot;, &amp;firstDay);
      
      return firstDay;
  }
  
  /*
  this function checks the validity of the input
  input: day, month
  output: none
  */
  void check(int month, int day)
  {
      if(month &gt; MAX_MONTHS || month &lt; MIN_MONTHS &amp;&amp; day &gt; MAX_DAYS || day &lt; MIN_DAYS)
      {
          printf(&quot;Invalid input, try again\n&quot;);
          input();
      }
      if (month == feb &amp;&amp; day &gt; 28)
      {
          printf(&quot;Invalid input, try again\n&quot;);
          input();
      }
      if (month == jan &amp;&amp; day &gt; 31)
      {
          printf(&quot;Invalid input, try again\n&quot;);
          input();
      }
  }
  
  void printDay(int month, int day, int firstDay)
  {
      int date = 0;
      date = day - firstDay;
      switch(day)
      {
          case sun:
          printf(&quot;%d.%d will be a Sunday&quot;, day, month);
          break;
          
          default: 
          break;
      }
  }
  </code></pre>