Question: 2 Strings ( 3 0 p ) Write down the function foo that finds the difference between the number of ' a ' s and

2 Strings (30p)
Write down the function foo that finds the difference between the number of 'a's and 'z's in a string. Then complete the main function which will print one of the following:
'a' appears ... times more in this string compared to 'z'.
'z' appears ... times more in this string compared to 'a'.
The number of 'a's and 'z's are same in this string.
int foo(char str[]){
 2 Strings (30p) Write down the function foo that finds the

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!