SlideShare a Scribd company logo
Team Emertxe
Strings and Storage
Classes
Assignment 10
Assignment 10
Assignment 10
WAP to print all possible combinations of given string.
Assignment 10
WAP to print all possible combinations of given string.
Input:
Assignment 10
WAP to print all possible combinations of given string.
Input: Read the String.
Assignment 10
WAP to print all possible combinations of given string.
Input: Read the String.
Output:
Assignment 10
WAP to print all possible combinations of given string.
Input: Read the String.
Output: Print all the possible combinations of given string.
Assignment 10
Example’s:
Assignment 10
Example’s:
 Input: Enter the string: ABC
 Output: All possible combinations of the given string:
• ABC
• ACB
• BAC
• BCA
• CBA
• CAB
Assignment 10
Example’s:
A B C
Input string
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
BA is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
BA is fixed BC is fixed
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
BA is fixed BC is fixed
C B A
Swap B with B
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
BA is fixed BC is fixed
C B A
Swap B with B
C A B
Swap B with A
Assignment 10
Example’s:
A B C
Input string
Swap A with A
A B C B A C
Swap A with B
C B A
Swap A with C
A is fixed B is fixed C is fixed
A B C
Swap B with B
A C B
Swap B with C
AB is fixed AC is fixed
B A C
Swap A with A
B C A
Swap A with C
BA is fixed BC is fixed
C B A
Swap B with B
C A B
Swap B with A
CB is fixed
Assignment 10
Example’s:
A B C
Input string
A B C B A C C B A
A B C A C B B A C B C A C B A C A B
Swap A with A Swap A with B Swap A with C
Swap B with B Swap B with C Swap A with A Swap A with C Swap B with B Swap B with A
A is fixed B is fixed C is fixed
AB is fixed AC is fixed BA is fixed BC is fixed CB is fixed CA is fixed
Assignment 10
Sample execution:-
Assignment 10
Sample execution:-
Assignment 10
Sample execution:-
Assignment 10
Pre-requisites:-
Assignment 10
Pre-requisites:-
⮚Strings
Assignment 10
Pre-requisites:-
⮚Strings
⮚Arrays
Assignment 10
Pre-requisites:-
⮚Strings
⮚Arrays
⮚Pointers
Assignment 10
Pre-requisites:-
⮚Strings
⮚Arrays
⮚Pointers
Objective:-
Assignment 10
Pre-requisites:-
⮚Strings
⮚Arrays
⮚Pointers
Objective:-
To understand the concept of String manipulations.
Team Emertxe
Thank you

More Related Content

More from Emertxe Information Technologies Pvt Ltd (20)

Ad

Recently uploaded (20)

PPTX
Institutional Correction lecture only . . .
PDF
Complications of Minimal Access Surgery at WLH
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Basic Mud Logging Guide for educational purpose
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Classroom Observation Tools for Teachers
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Institutional Correction lecture only . . .
Complications of Minimal Access Surgery at WLH
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPH.pptx obstetrics and gynecology in nursing
Basic Mud Logging Guide for educational purpose
Abdominal Access Techniques with Prof. Dr. R K Mishra
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Classroom Observation Tools for Teachers
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Module 4: Burden of Disease Tutorial Slides S2 2025
RMMM.pdf make it easy to upload and study
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
TR - Agricultural Crops Production NC III.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Ad

10_combinations.pdf