SlideShare a Scribd company logo
1 of 53
Download to read offline
Team Emertxe
Strings and Storage
Classes
Assignment 8
Assignment 8
Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input:
Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
Output:
Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
Output: Print string1 after removing the characters that
matches with string2.
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
D e s R t c h e 0
Output: str1
after
squeezing
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e i s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
Assignment 8
Example’s:
 Input: str1: Dennis Ritchie and str2: Linux
 Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W e l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W e l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o e 0
Assignment 8
Example’s:
 Input: str1: Welcome and str2: Emertxe
 Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o 0
Assignment 8
Sample execution:-
Assignment 8
Sample execution:-
Assignment 8
Sample execution:-
Assignment 8
Pre-requisites:-
Assignment 8
Pre-requisites:-
⮚Functions
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Objective:-
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Objective:-
To understand the concept of
 Functions
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Objective:-
To understand the concept of
 Functions
 Pointers
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Objective:-
To understand the concept of
 Functions
 Pointers
 Arrays
Assignment 8
Pre-requisites:-
⮚Functions
⮚Arrays
⮚Pointers
Objective:-
To understand the concept of
 Functions
 Pointers
 Arrays
 Strings
Team Emertxe
Thank you

More Related Content

More from Emertxe Information Technologies Pvt Ltd

More from Emertxe Information Technologies Pvt Ltd (20)

10_isxdigit.pdf
10_isxdigit.pdf10_isxdigit.pdf
10_isxdigit.pdf
 
01_student_record.pdf
01_student_record.pdf01_student_record.pdf
01_student_record.pdf
 
02_swap.pdf
02_swap.pdf02_swap.pdf
02_swap.pdf
 
01_sizeof.pdf
01_sizeof.pdf01_sizeof.pdf
01_sizeof.pdf
 
07_product_matrix.pdf
07_product_matrix.pdf07_product_matrix.pdf
07_product_matrix.pdf
 
06_sort_names.pdf
06_sort_names.pdf06_sort_names.pdf
06_sort_names.pdf
 
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
 
10_combinations.pdf
10_combinations.pdf10_combinations.pdf
10_combinations.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
 

Recently uploaded

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Recently uploaded (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

08_squeeze.pdf