title: C++ error "too few arguments to function"
body: <p>I have a C++ program that shows an error: </p>
  
  <pre><code>too few arguments to function void split(char*, char**, int, int, int*)
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  using namespace std;
  
  void split(char* lin, char** word, int i, int w, int* c);
  
  int main() {
    char line[80] = "myline";
    int n = 5;
    char **word;
    split(line, word, 1, 1);         //Error is here.
  
    return 0;
  }
  void split(char* lin, char** word, int i,int w, int* c)
  {
     //statements
  }
  </code></pre>
  
  <p>Can anyone tell whats wrong?</p>