Define a struct that includes the word (as a char *) and the count of how many times in appears in the file.
For this assignment, you will be counting the number of occurrences of each word in a text file. To do this, there are a few steps: 1) Define a struct…