Question: Find and replace problem in C PROGRAMMING You will implement a replica of find and replace option available in the word document !!! Input: An

Find and replace problem in C PROGRAMMING

You will implement a replica of find and replace option available in the word document !!!

Input: An initialized one dimensional character array of size 100 and the strings that would be found and replaced with.

Output: The input character array after being replaced by the requested string.

Sample Input: a:"A quick brown fox jumps over the lazy dog." Find: "fox", Replace: "tiger"

Sample Output: "A quick brown tiger jumps over the lazy dog."

Define a separate function that accepts three arguments as input string, find and replace string

and implement the find and replace inside that function. You can use the strcmp() function for the

string comparison along with other necessary libraries. You need to call that function

from the main function and print the result in the main function. (e.g. use the pointer concept)

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!