(Solved) : Using C Write Function Called Replacechar Replace Character Ch1 Character Ch2 Given String Q43943544 . . .
USING C++:
Write a function called replaceChar that will replacecharacter ch1 with character ch2 in a given string s. The functionprototype is provided below.
For example if s=”Hello”, then replaceChar(s,’e’, ‘a’) will result in s becoming “Hallo”.void replaceChar(string&, char, char);
Expert Answer
Answer to USING C++: Write a function called replaceChar that will replace character ch1 with character ch2 in a given string s. T…
OR