[prev] [index] [next]

Exercise: The ohce Command

Write a program called ohce that
  • displays its command line arguments
  • but writes them in the reverse order
  • and reverses the characters in each word
Examples of use:

$ ./ohce these are some args
sgra emos era eseht
$ ./ohce even 123 gets  reversed
desrever steg 321 neve
$ ./ohce able was I ere I saw elba
able was I ere I saw elba