Question: Please finish the function replace and function replaceAll. char *replace(char *source, char *pattern, char *replacement); char *replaceAll(char *source, char *pattern, char *replacement); Function replace will
Please finish the function replace and function replaceAll.
char *replace(char *source, char *pattern, char *replacement);
char *replaceAll(char *source, char *pattern, char *replacement);
Function replace will find the first appear pattern in source and replace it withreplacement.
Function replaceAll will find all pattern in source and replace it with replacement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
