From the course: C Standard Library

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Find a special word

Challenge: Find a special word - C Tutorial

From the course: C Standard Library

Start my 1-month free trial

Challenge: Find a special word

(upbeat music) - [Instructor] Here's another challenge to test what you've learned about string examination and manipulation in the string.h header file. You must make an application that asks for two strings: a sentence and a special word. This special word is a sub-string that may or may not occur in the sentence. The application must print out the sentence without the special word. If the word was not found in the sentence, it should report it. Once again, remember that you should use the functions in string.h and that you shouldn't worry about special cases like including spaces in the short word, or verifying that the short word is indeed shorter than the sentence. Just keep it optimistically simple. This should take you about 30 minutes to complete. After completing your solution, take a look at mine in the next video.

Contents