Question: Create a function named countCharRange which takes a string and a range _ t structure ( not a pointer ) as arguments. The function should
Create a function named countCharRange which takes a string and a ranget structure not a pointer
as arguments. The function should search the string and return the number of characters from the
string are in the range given in the structure. Note the range SHOULD include the start and end
characters. This function should be case insensitive in that it should count both E and e if either is in
the string.
For example, if the string is eabbmcddEeFf" and the structures start is e and its end is z your
function should return since six of the letters from the string characters emEeFf are from e to z
It should return because the underlined characters are in the given range eabbmcddEeFf"
The string may contain any valid printable character. It wont just contain alphabetic characters.
You can assume the ranget structure will only contain lowercase alphabetic characters.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
