Write a C program that prompts the user to input two strings. The program must output the total
number of times the second string appears in the first string without using any string library
function except strlen(), gets(), puts(). Length of the second string must be greater
than 1. In the main function, input two strings and pass them to a function named
countSubstrings. The function should return how many times the second string occurs inside
the first string. Finally, print the result in the main function.
1
Expert's answer
2018-04-05T09:09:51-0400
Dear TLG, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment