Question: *program is in c* Write a program to find the words that have a specific character among the words of a string. Read a string

*program is in c*
Write a program to find the words that have a specific character among the words of a string. Read a string and a character from the user and display all the words having that character on the screen. One way to do this is to find the words in one sentence and check if they have the required character in them. Another way is to find all the occurrence of the character and then find the words in those locations. Assume that words are not case sensitive in your program. Both the words "One" and "one" have an 'o' in them. Do not use string function strtok(). You can write your own version of strtok() and use them in your program if you want. Sample execution is given below Enter a sentence This is my first sentence Enter a character i Words containing i are: This is first Since words are case sensitive we have the following sample execution Enter a sentence I am a computer scientist Enter a character Words containing i are: I scientist
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
