title: C Programming Error: too few arguments to function "whatever's inside"
body: <p>These Functions should work but why aren't they? The compiler says Error: too few arguments to function "whatever's inside". I am a beginner to C so forgive my stupidness. I would also like to know what can be in a function.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;math.h&gt;
  
  int x;
  int y;
  
  int multiply (int x, int y)
  {
      printf("()");
      return x*y;
      getchar();
      scanf("%d", &amp;x);
      scanf("%d", &amp;y);
      printf(":\n", multiply(x, y));
  
  }
  
  int add (int x, int y)
  {
      printf("()");
      return x+y;
      getchar();
      scanf("%d", &amp;x);
      scanf("%d", &amp;y);
      printf(":\n", add(x, y));
  }
  
  int divide (int x, int y)
  {
      printf("()");
      return x/y;
      getchar();
      scanf("%d", &amp;x);
      scanf("%d", &amp;y);
      printf(":\n", divide(x, y));
  }
  
  int subtract(int x, int y)
  {
      printf("()");
      return x-y;
      getchar();
      scanf("%d", &amp;x);
      scanf("%d", &amp;y);
      printf(":\n", divide(x, y));
  }
  
  int power(int x, int y)
  {
      printf("()");
      pow(x, y);
      getchar();
      scanf("%d", &amp;x);
      scanf("%d", &amp;y);
      printf(":\n", power(x, y));
  }
  
  //main code
  
  int main(void)
  {
      int option;
  
      switch (option)
      {
      case 1:
      add();
      break;
  
      case 2:
      subtract();
      break;
  
      case 3:
      multiply();
      break;
  
      case 4:
      divide();
      break;
  
      case 5:
      power();
      break;
  
  
      }
      getchar();
  }
  </code></pre>