Question: Write a C++ function that receives a character array and uses pointer notation to count how many times each of the vowels a, e, i,

Write a C++ function that receives a character array and uses pointer notation to count how many times each of the vowels a, e, i, o, and u were found among the characters in the array and returns these counts as another array of size 5. Also write a main() function that obtains up to 200 characters from the user, uses the above written function to count the occurrence of each, and prints these counts. User will enter a -1 to indicate end of entering data. Your program must use dynamic memory allocation.

Please explain your solution

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!