2. write whole code in C to replace occurence of a string by another, in an input string
Sigiloso
we can compute the size of the resultant string after going through a pass and getting the count of occurences of the match string. then allocate memory and copy to it.