SlideShare a Scribd company logo
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

More Related Content

More from Emertxe Information Technologies Pvt Ltd (20)

Ad

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Classroom Observation Tools for Teachers
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PDF
Business Ethics Teaching Materials for college
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Classroom Observation Tools for Teachers
O5-L3 Freight Transport Ops (International) V1.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RMMM.pdf make it easy to upload and study
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
human mycosis Human fungal infections are called human mycosis..pptx
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
Business Ethics Teaching Materials for college
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Pharma ospi slides which help in ospi learning
Week 4 Term 3 Study Techniques revisited.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Ad

06_reverserec.pdf