POD-26-Sep-2016

gladiator

Write a program to reverse a string word wise.
Note:

  • The string should be taken from user at run time.
  • Characters within word are not to be reversed.
  • If you are an exert, implement using dynamic memory allocation for string, otherwise use array and display the maximum character that user can enter.
  • If user does not the criteria, display an error message and ask to re-enter.