title: Getting "too few arguments to function"
body: <pre><code>#include&lt;stdio.h&gt;
  int powFunc(int, int);
  
  int main() //main function
  {
     int x, y, p = 0;
  
     printf(&quot;enter the base no. and the power &quot;);
     scanf(&quot;%d %d&quot;, &amp;x, &amp;y);
  
     p = powFunc(int x, int y); // Getting an error here
  
     printf(&quot;%d to the power of %d is %d\n&quot;,x,y,p);
  
     return 0;
  }
  
    int powFunc(int base, int n)
    {
        int p;
        for(p = 1; n &lt; 0; n--)
           p = p * base;
  
        return p;
    }
  </code></pre>