Question: Write a computer program as a Win32 console application in C to count the number of times every word occurs in a text file. The
Write a computer program as a Win32 console application in C to count the number of times every word occurs in a text file. The program shall then print the word that occurs most frequently and the number of times it appears in the file. If there is tie of words that occur most frequently, then pick the first one for output display. The name of your source program shall be p5.c and that of your executable program shall be p5.exe. Your program shall receive information from the user as a command-line argument. For example, a typical command line to start your program (from a command prompt) might be L: >p5 testfile txt Your program shall NOT seek information from the user such as by a call to scanf(). Your program shall NOT print information to the screen except as required herein. If your program is started without any command-line arguments, it shall print the following line to the screen and terminate execution: EE 233 Spring 2017 P5,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
