K&R Exercises

Exercise 4-13: Recursive reverse

Write a recursive version of the function reverse(s), which reverses the string s in place.

Each input line, at most 1000 characters, holds s without its newline. Print the reversed s on a line of its own.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet