Write a function that reads a line and reverses the words


Problem:

Question- Write a function that reads a line and reverses the words in the line (not the characters) using a stack. For example, given the following input:

The quick brown fox jumps over the lazy dog.

You should get the following output:

dog lazy the over jumps fox brown quick The

i have the code for reversing charachters but i need to reverse word by word.

Please describe your code with explainnation.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function that reads a line and reverses the words
Reference No:- TGS0893358

Expected delivery within 24 Hours