Question: Problem 4 : Find and Replace Write a program that reads a string and two characters F and R ( F for Find and R
Problem : Find and Replace
Write a program that reads a string and two characters and for Find and for Replace The main
function then invokes find AndReplace fun ction th at replaces the ch aracter by the character and also
returns the number of replacements back to main The main then prints the result.
For your convenience, the function prototype is given below.
Function prototype: int findindReplace char char F char R;
Sample input output:
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
