title: Type mismatch in c programming
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;string.h&gt;
  
  void printlength(char a);
  
  void printlength(char a)
  {
      int len = strlen(a);
      printf("The Length of the String %s is %d ", a, len);
      getch();
  }
  
  void main()
  {
      char a[25];
      clrscr();
      printf("Enter the name");
      scanf("%s", &amp;a);
      printlength(a);
  }
  </code></pre>
  
  <p>I just started learning c and stuck in these error.
  I am getting both the error </p>
  
  <p>type mismatch in parameter error in c and 
  type mismatch in parameter redeclaration  </p>