title: Counting number of vowels and consonants in a string
body: <p>I keep on getting a [Linker error]C:\Users etc and collect2: Id returned 1 exit status code errors on my program but I don't see anything wrong with it. This is my program:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;conio.h&gt;
  
  int main (){
  int vowels = 0, cnsnts = 0;
  int i, length;
  char string[100];
  
  printf("Enter sentence:");
  gets(string);
  length = strlen(string);
  
  for(i = 0; i &lt; length; i++){
      switch(toUpper(string[i])){
          case 'A':
              vowels++;
              break;
          case 'E':
              vowels++;
              break;
          case 'I':
              vowels++;
              break;
          case 'O':
              vowels++;
              break;
          case 'U':
              vowels++;
              break;
          default:
              cnsnts++;
      }
  }
  
  printf("The number of vowels are %d.\n", vowels);
  printf("The number of consonants are %d.\n", cnsnts);
  
  system("pause");
  return 0;
  
  }
  </code></pre>