title: Terminal: segmentation fault 11 while reading file and counting the amount of vowels
body: <p>The terminal keeps saying: segmentation fault 11.
  My code is:</p>
  
  <pre><code>int main()
  {
      FILE *file;
      file=fopen("test.txt","r");
      int c;
      int vowelCount=0;
  
      while ((c=getc(file)!=EOF)) {
  
          if( c=='a' | c=='e' | c=='i'| c=='o' | c=='u')
          {
  
              vowelCount++;
          }
      }
      printf("%d",vowelCount);
      return 0;
  }
  </code></pre>