Write a program that prompts the user for a sequence of words separated by one or more spaces, where each word is a sequence of alpha-numeric characters. You can assume that the text string entered is no more than 80 characters long, and each word is no more than 20 characters long. Use the fgets() command in stdio.h to read the input text string. For example, we can declare a char array char sentence[81]; then use fgets(sentence,81,stdin); to read in up to 80 characters from the standard input stdin(i.e. keyboard input) into the character array sentence[], which will also insert a null character (string termination character) at the end of the array; this is why the array needs to be one byte longer than the entered text. Your program should print the words out in reverse order, exactly as entered with exactly one space between each word. You can assume there are no punctuation marks or control characters entered. Your program should be named reverse_words.c, and your output should match exactly the output shown for the example below.

$ ./reverse_words Enter a sentence (up to 80 characters): The quick brown fox jumped over the lazy dog
dog lazy the over jumped fox brown quick The $
Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.