Question: Consonants: C++ program : Write a function that accepts a pointer to a C-string as its argument. This function should count the number of consonants
Consonants:
C++ program : Write a 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. Call the function from your main and pass the same string the user entered in a) and display the number of vowels in it. For example, if the string argument is "Gravity in", the function should return 7.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
