Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C language Write a program to find the word that have a specific character among the words of a string. Read a string and a
C language
Write a program to find the word 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 occurrences 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 string function strtok(). You can write your own version of strtok() and use then 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 i words containing i are Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started