Print Reverse of a string (Recursion)
Print the reverse of a string using recursion. Example a) Input string : Sachin Output : nihcas b) Input string : Code Output : edoC Time complexity : O(n) Algorithm Create Reverse function to reverse string recursively In this function, a. It takes string pointer (str) as input. b. It …