Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- void removeVowels(char* array){
- int i,j,v;
- i=0;
- char vowel[]={'a','e','i','o','u'};
- while(array[i]!='\0')
- {
- for(v=0;v<5;v++)
- {
- if (array[i]==vowel[v])
- {
- j=i;
- while(array[j]!='\0')
- {
- array[j]=array[j+1];
- j++;
- }
- i--;
- break;
- }
- }
- i++;
- }
- }
- int main()
- {
- char a[]="aqejin amlkteeeeeuoip-";
- removeVowels(a);
- printf("%s\n",a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement