SlideShare a Scribd company logo
1 of 39
Download to read offline
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

More from Emertxe Information Technologies Pvt Ltd (20)

05_fragments.pdf
05_fragments.pdf05_fragments.pdf
05_fragments.pdf
 
04_magic_square.pdf
04_magic_square.pdf04_magic_square.pdf
04_magic_square.pdf
 
03_endianess.pdf
03_endianess.pdf03_endianess.pdf
03_endianess.pdf
 
02_variance.pdf
02_variance.pdf02_variance.pdf
02_variance.pdf
 
01_memory_manager.pdf
01_memory_manager.pdf01_memory_manager.pdf
01_memory_manager.pdf
 
09_nrps.pdf
09_nrps.pdf09_nrps.pdf
09_nrps.pdf
 
11_pangram.pdf
11_pangram.pdf11_pangram.pdf
11_pangram.pdf
 
08_squeeze.pdf
08_squeeze.pdf08_squeeze.pdf
08_squeeze.pdf
 
07_strtok.pdf
07_strtok.pdf07_strtok.pdf
07_strtok.pdf
 
06_reverserec.pdf
06_reverserec.pdf06_reverserec.pdf
06_reverserec.pdf
 
05_reverseiter.pdf
05_reverseiter.pdf05_reverseiter.pdf
05_reverseiter.pdf
 
04_itoa.pdf
04_itoa.pdf04_itoa.pdf
04_itoa.pdf
 
03_atoi.pdf
03_atoi.pdf03_atoi.pdf
03_atoi.pdf
 
02_getword.pdf
02_getword.pdf02_getword.pdf
02_getword.pdf
 
01_Removeblanks.pdf
01_Removeblanks.pdf01_Removeblanks.pdf
01_Removeblanks.pdf
 
01_wordcount.pdf
01_wordcount.pdf01_wordcount.pdf
01_wordcount.pdf
 
19_sorted_order.pdf
19_sorted_order.pdf19_sorted_order.pdf
19_sorted_order.pdf
 
18_negative_fibonacci.pdf
18_negative_fibonacci.pdf18_negative_fibonacci.pdf
18_negative_fibonacci.pdf
 
17_positive_fibonacci.pdf
17_positive_fibonacci.pdf17_positive_fibonacci.pdf
17_positive_fibonacci.pdf
 
16_factorial.pdf
16_factorial.pdf16_factorial.pdf
16_factorial.pdf
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

10_combinations.pdf