Question: C programing Problem 4 We are going to create a program which will take a string and two characters. Then, the program will replace all
C programing
Problem 4
We are going to create a program which will take a string and two characters. Then, the program will replace all instances of the first character with the second character in the string. Be sure to use loops to solve this problem! HINT: When you are scanning in multiple characters like this, the compiler needs to know that there is a space before you enter the next character (otherwise, it just takes in the space from the next printf). So, to make this work, be sure that you are using scanf(" %c", &char1);, with a space before the %.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
