Praveen | Typing Speed Test is a very useful Software available for free Download.

C Programs to Check the Vowel Or Not in the Given String

      This C program to check alphabet is vowel or not. Both lower case and upper case are checked alphabet. In this programs to check vowel in the string, And find out the vowels to print.


C programming code in a string

#include<stdio.h>
#include<conio.h>

void main()
{
    char ch[35];
    int i;
    clrscr();
    printf("\n Enter a string ");
    scanf("%s",&ch);
    printf("\n vowel is->");
    for(i=0;ch[i]!='\0';i++)
     {
       if ( ch[i] == 'a' || ch[i] == 'A' || ch[i] == 'e' || ch[i] == 'E' || ch[i] == 'i' || ch[i] == 'I' || ch[i] =='o' || ch[i]=='O' || ch[i] == 'u' || ch[i] == 'U')
         printf("  %c", ch[i]);
      }
    getch();
}


Output:-