Question: Question 7: Reverse all words Given a string we wish to reverse the individual words in the string. If we were given the following string:
Question 7: Reverse all words
Given a string we wish to reverse the individual words in the string. If we were given the following string: Heres a one-off example! Hello world. then, as output, we ought to produce: sereH a ffo-eno elpmaxe! olleH dlrow. Sequences comprising of letters of the alphabet, numeric digits, the apostrophe, ampersand, and the hyphen characters all form words; any other characters do not. Complete the function rev_words below. You may assume that any additional functions you define can be called from it (i.e., that their declarations appear before it).
void rev_words(char input[])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
