C program to eliminate all vowels from a string
Given a string and we have to eliminate/ remove all vowels from the string using C program.
To eliminate/remove the vowels
- We will traverse (reach) each elements by using a loop
- And, check the each element, if any element found as vowel, we will remove that shifting all other elements to the left
- Finally, we will print the string - that will be a string without the vowels
String is: "Hello World"
String after removing vowels: "Hll Wrld"