Hi This is for C program thanks 1 Write a function that repl
Hi This is for C program thanks.
1. Write a function that replace vowels within the string with star(*).
 For example vowels are \'a\',\'e\',\'i\',\'o\',\'u\' so if my string is \"Sara is awesome!\" the expected output should be \"s*r* *s *ws*m*\"
Solution
char *replaceVowels(char *input)
 {
 int i;
 for (i = 0; input[i] != \'\\0\'; i++)
 {
 if (input[i]==\'a\'||input[i]==\'e\'||input[i]==\'i\'||input[i]==\'o\'||input[i]==\'u\')
  {
 input[i]= \'*\';
 }
 }
 return input;
 }

