SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Mehr von Emertxe Information Technologies Pvt Ltd

Mehr von 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
 

Kürzlich hochgeladen

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
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
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

01_Removeblanks.pdf