Write a function chat accepts a pointer to a c-string as its argument. the function should count the number of vowels appearing in the sering and rerurn that number. write another function that accepts a pointer to a c-string as its argument. this function should count the number of consonants appearing in the string and return that number. demonstrate these two functions in a program rhar performs the following steps: i. the user is asked to enter a string. 2. the program displays the following menu: a) count the number of vowels in rhe string 8) count the number of consonants in the string c) count both the vowels and consonants in the string d) enter another string e) exit the program 3. the program performs the operation selected by the user and repeats until the user selects e to exit the program.

Solved
Show answers

Ask an AI advisor a question