Question: In C programming Write a program that finds the smallest and largest in a series of words. The user enters one word at a time;

In C programming

Write a program that finds the smallest and largest in a series of words. The user enters one word at a time; the input terminates when a user enters any word containing 3 characters. When all words are entered, the program should print, which word comes first (smallest) and which word comes last (largest) in lexicographic order. You are NOT supposed to sort incoming strings.

Below is an example of a session:

Enter word:eleven

Enter word:twenty

Enter word:seven

Enter word:two

Smallest word: eleven

Largest word: two

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!