write a program that prompts the user for a string and then printsthe string rev
ID: 3615392 • Letter: W
Question
write a program that prompts the user for a string and then printsthe string reversed. You may assume the word entered will notbe more than 19 characters long. Declare your stringaccordingly.You must use a function called wordReverse to do the actualreversing. This function should not return anything. Its only parameter should be the string to reverse. Do notmake any assumptions about the length of the string. You mustuse the null character to determine where the string ends. You may use the strcpy function from string.h, but it is notrequired.
A sample run of the program is below. User input is in boldfor clarity.
Enter a word: midterm The word reversed is: mretdim