Question: Create a program that uses the strcmp() function to arrange strings alphabetically. Start by building an array of strings to hold the following three strings

 Create a program that uses the strcmp() function to arrange strings

Create a program that uses the strcmp() function to arrange strings alphabetically. Start by building an array of strings to hold the following three strings in the given order: {"Result", "dismal", "fees"} then write a findMin function that takes a char array and it's size as parameters return the "smallest" (alrphabaticall, precedes e.g. "cat" is smaller than "dog") string. use findMin to determine the "smallest" string in your array

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!