C Programming: Convert vowels into upper case character in a given string
34. Uppercase Vowels in String
Write a C program to convert vowels into uppercase characters in a string.
Sample Solution:
C Code:
Output:
Input a sentence: The original string: w3resource After converting vowels into upper case the sentence becomes: w3rEsOUrcE
Flowchart:
For more Practice: Solve these Related Problems:
- Write a C program to traverse a string and convert every vowel to its uppercase form.
- Write a C program to modify a string so that only the vowels are changed to uppercase while consonants remain unchanged.
- Write a C program to convert vowels to uppercase using a switch-case statement for each character.
- Write a C program to iterate through a string and replace lowercase vowels with their uppercase counterparts using ASCII manipulation.
C Programming Code Editor:
Improve this sample solution and post your code through Disqus.
Previous C Exercise: Count of each character in a given string.
Next C Exercise: Length of the longest substring in a given string.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.