SlideShare a Scribd company logo
Team Emertxe
Strings and Storage
Classes
Assignment 1
Assignment 1
Assignment 1
WAP to replace each string of one or more blanks by a
single blank
Assignment 1
WAP to replace each string of one or more blanks by a
single blank
Input:
Assignment 1
WAP to replace each string of one or more blanks by a
single blank
Input: String with multi-spaces between words
Assignment 1
WAP to replace each string of one or more blanks by a
single blank
Input: String with multi-spaces between words
Output:
Assignment 1
WAP to replace each string of one or more blanks by a
single blank
Input: String with multi-spaces between words
Output: Print each string after replacing one or more
blanks by a single blank.
Assignment 1
Example’s:
Assignment 1
Example’s:
⮚Input: Welcome to Emertxe
Output: Welcome to Emertxe
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
If space or tab is encountered
check the next character, if the
next character is also a space,
then swap all the elements one
step back
Assignment 1
Example’s:
W e l c o m e t o e m e r t x e 0
⮚Input: Welcome to Emertxe
Assignment 1
Sample execution:-
Assignment 1
Sample execution:-
Assignment 1
Sample execution:-
Assignment 1
Pre-requisites:-
Assignment 1
Pre-requisites:-
⮚Functions
Assignment 1
Pre-requisites:-
⮚Functions
⮚Pointers
Assignment 1
Pre-requisites:-
⮚Functions
⮚Pointers
Objective:-
Assignment 1
Pre-requisites:-
⮚Functions
⮚Pointers
Objective:-
To understand the concept of
⮚Functions
Assignment 1
Pre-requisites:-
⮚Functions
⮚Pointers
Objective:-
To understand the concept of
⮚Functions
⮚Arrays
Assignment 1
Pre-requisites:-
⮚Functions
⮚Pointers
Objective:-
To understand the concept of
⮚Functions
⮚Arrays
⮚Pointers
Team Emertxe
Thank you

More Related Content

More from Emertxe Information Technologies Pvt Ltd

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

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
 
10_combinations.pdf
10_combinations.pdf10_combinations.pdf
10_combinations.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_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

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
christianmathematics
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
What is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptxWhat is the purpose of studying mathematics.pptx
What is the purpose of studying mathematics.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

01_Removeblanks.pdf