Question: Program the following problem in C/C++ Write a program that reads a list of words and prints them in alphabetical order with one word per
Write a program that reads a list of words and prints them in alphabetical order with one word per line. If two words have the same beginning sequence, the shorter word should be printed first. If the program is called with an "r" on the command line, the list of words should be printed in reverse alphabetical order. Test your program using the bunch-of-words.txt file available on Moodle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
