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

08_squeeze.pdf