Question: This is a c program problem: MUST use recursion to solve this problem. No global variables are allowed Write a program called rev_print.c that prints
This is a c program problem:
MUST use recursion to solve this problem.
No global variables are allowed
Write a program called rev_print.c that prints out a string in reverse. This program should have a function with the following declaration void rev_print(char* str); This function should print out the string in reverse The problem must be solved recrusivesly If you do not solve it recursively you will receive NO CREDIT on it The string to be reveresed will be passed via command line arguments Examples 1. ./rev_str.outAtTheEnd The reverse of AtTheEnd is dnEehTtA 2. ./rev_str.out WelcomeToFreedom The reverse of WelcomeToFreedom is modeerFoTemocleW 3. ./rev_str.out tacocat The reverse of tacocat is tacocat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
