Please answer in C programming:
This question has 2 parts:
1. A main function with the function call to WordGuess.
2. The function definition for WordGuess main function:
- Declare 2 character arrays of size 20.
- Ask and get the first name of the user and store it in one of the two arrays.
- Connect to a FILE and store a word from the file into the other array.
- Pass the two arrays to the function WordGuess.
- Declare a character array.
- Get the length of the solution word parameter and the length of the word.
- Ask the user (by name, first function parameter) to guess a word (display the first and last characters of the second).
- Store the word entered by the user in the declared array.
- Compare the solution (parameter 2) to the word the user just entered.
- Let the user know if they match. If not, display the solution word onto the screen.
ASSUME ALL SOLUTIONS AND WORDS ENTERED BY THE USER ARE ALL LOWERCASE LETTERS.
Function prototype: void WordGuess(char name[], char solution[])