/*Write a function void count_replace_item(char s[], char char_to_replace, char replacement) The function replaces all occurrences of char_to_replace with replacement character. For example, if the original array is: WeLoveProgramminginClanguage char_to_replace is g replacement char is * The new array will be: WeLovePro*rammin*inClan*ua*e You can use scanf to read the string or the function we wrote on Monday Write main to test your program. The main should print original string, char to replace and replacement and the new string after replacement was done*/ #include #include #include #define SIZE 20 void count_replace_item(char s[], char char_to_replace, char replacement); int main(){ char str[SIZE], char_to_replace,replacement; srand(time(NULL)); char_to_replace=(char)(26+rand()%(133-26+1)); replacement=(char)(26+rand()%(133-26+1)); printf("char_to_replace replacement %c %c\n",char_to_replace, replacement); printf("enter string \n"); // scanf("%c", &char_to_replace); // scanf("%c", &replacement); scanf("%s", str); printf("original string %s\n", str); count_replace_item(str,char_to_replace, replacement); printf("string after change %s\n", str); return 0; } void count_replace_item(char s[], char char_to_replace, char replacement){ int i=0; while(s[i]!='\0'){ if(s[i]==char_to_replace) s[i]=replacement; i++; } }