Question: How to code this in C++? (Count occurrence of each letter in a string) Write a program that counts the occurrence of each letter in
How to code this in C++?

(Count occurrence of each letter in a string) Write a program that counts the occurrence of each letter in the string using the following function header: void count(string aStr, int counts) when: counts is an array of 26 integers, counts[O], counts[l],,m. and counts[25] count the occurrence of a, b, cm... and 2, respectively. Let- ters are not case-sensitive, i.e., letter A and glare counted the same as a. Your code must invoke or call the function countland display all non- zero counts. Example execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
