Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago