title: Function error 'expected expression before char'?
body: <p>I have created the following program which allows a user to guess a word 3 times before ending the program. I'm using a function to read the users input. When I compile the program I get the error 'expected expression before char'. Some feedback would be great thanks!</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  void get_user_input(char *guess[10]);
  
  void get_user_input(char *guess[10])
  { 
       printf("Please guess the word: \n");
       scanf("%s", guess);
  }
  
  int main(void)
  {
       const char secret[10] = "pink";
       char guess[10];
       int i;
  
       for (i=0; i &lt; 3; i++)
       {
           get_user_input(char *guess[10]);
  
           if (strcmp(secret, guess)==0)
           {
               printf("Your guess was correct");
               return 0;
           }
           else
           {
               printf("Your guess was incorrect. Please try again\n");
           }
       } 
       return 0;
  }
  </code></pre>