Team Emertxe
Strings and Storage
Classes
Assignment 6
Assignment 6
Assignment 6
WAP to reverse the given string using recursive method
Assignment 6
WAP to reverse the given string using recursive method
Input:
Assignment 6
WAP to reverse the given string using recursive method
Input: Read the String
Assignment 6
WAP to reverse the given string using recursive method
Input: Read the String
Output:
Assignment 6
WAP to reverse the given string using recursive method
Input: Read the String
Output: Print the reversed string.
Assignment 6
WAP to reverse the given string using recursive method
Input: Read the String
Output: Print the reversed string.
Note: Should not use static, global variables and loops
Assignment 6
Example’s:
Assignment 6
Example’s:
 Input: Extreme
 Output: emertxE
E x t r e m e 0
e m e r t x E 0
Input string
Output string
Assignment 6
Example’s:
 Input: Extreme
 Output: emertxE
E x t r e m e 0
e x t r e m E 0
swap
Input string
Output string
Assignment 6
Example’s:
 Input: Extreme
 Output: emertxE
E x t r e m e 0
e m t r e x E 0
swap
Input string
Output string
Assignment 6
Example’s:
 Input: Extreme
 Output: emertxE
E x t r e m e 0
e m e r t x E 0
swap
Input string
Output string
Assignment 6
Example’s:
 Input: Extreme
 Output: emertxE
E x t r e m e 0
e m e r t x E 0
Input string
Output string
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
h e l l o w o r l d 0
Input string
Output string d l r o w o l l e h 0
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
swap
Input string
Output string
h e l l o w o r l d 0
d e l l o w o r l h 0
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
swap
Input string
Output string
h e l l o w o r l d 0
d l l l o w o r e h 0
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
swap
Input string
Output string
h e l l o w o r l d 0
d l r l o w o l e h 0
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
swap
Input string
Output string
h e l l o w o r l d 0
d l r o o w l l e h 0
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
Input string
Output string
h e l l o w o r l d 0
d l r o w o l l e h 0
swap
Assignment 6
Example’s:
 Input: hello world
 Output: dlrow olleh
Input string
Output string
h e l l o w o r l d 0
d l r o w o l l e h 0
Assignment 6
Sample execution:-
Assignment 6
Sample execution:-
Assignment 6
Sample execution:-
Assignment 6
Pre-requisites:-
Assignment 6
Pre-requisites:-
⮚Strings
Assignment 6
Pre-requisites:-
⮚Strings
⮚Recursive functions
Assignment 6
Pre-requisites:-
⮚Strings
⮚Recursive functions
Objective:-
Assignment 6
Pre-requisites:-
⮚Strings
⮚Recursive functions
Objective:-
To understand the concept of reversing the string using
recursive method.
Team Emertxe
Thank you

06_reverserec.pdf