SlideShare a Scribd company logo
Write a C program for the following:
Create a doubly linked list. (-999 to stop entering the elements).
Make sure one of the entered elements is 42. If 42 is not entered, the program should display an
error message.
Delete an element before the existing linked list element 42.
If there are more than one occurrence of 42, give user the choice where the new element must be
deleted.
Sample Input/Output 1
Input
42 19 32 45 42 39 -999
Output
2 occurrence of 42 found. Where should the deletion occur?
Input
2
Output 42 19 32 42 39
Sample Input/Output 2
Input
42 19 32 45 42 39 -999
Output
2 occurrence of 42 found. Where should the deletion occur?
Input
1
Output
No element before 42
Write a C program for the following- Create a doubly linked list- (-99.pdf

More Related Content

More from EricVaCYoungs

Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdfWhy do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
EricVaCYoungs
 
Why is northwest Europe among the mildest climates for its latitude- I.pdf
Why is northwest Europe among the mildest climates for its latitude- I.pdfWhy is northwest Europe among the mildest climates for its latitude- I.pdf
Why is northwest Europe among the mildest climates for its latitude- I.pdf
EricVaCYoungs
 
Why is sufficient chlorine added to raw water (prechlorination) to go.pdf
Why is sufficient chlorine added to raw water (prechlorination) to go.pdfWhy is sufficient chlorine added to raw water (prechlorination) to go.pdf
Why is sufficient chlorine added to raw water (prechlorination) to go.pdf
EricVaCYoungs
 
Who is responsible for securing the data in the cloud- Why is disaster.pdf
Who is responsible for securing the data in the cloud- Why is disaster.pdfWho is responsible for securing the data in the cloud- Why is disaster.pdf
Who is responsible for securing the data in the cloud- Why is disaster.pdf
EricVaCYoungs
 
White-collar crime costs society more financially each year than all o.pdf
White-collar crime costs society more financially each year than all o.pdfWhite-collar crime costs society more financially each year than all o.pdf
White-collar crime costs society more financially each year than all o.pdf
EricVaCYoungs
 
Whispering Winds Corporation is authorized to issue both preferred and.pdf
Whispering Winds Corporation is authorized to issue both preferred and.pdfWhispering Winds Corporation is authorized to issue both preferred and.pdf
Whispering Winds Corporation is authorized to issue both preferred and.pdf
EricVaCYoungs
 
While undertaking the nutritional assessment with Tom you note he has.pdf
While undertaking the nutritional assessment with Tom you note he has.pdfWhile undertaking the nutritional assessment with Tom you note he has.pdf
While undertaking the nutritional assessment with Tom you note he has.pdf
EricVaCYoungs
 
While there may be many reasons individuals do not vote in local elect.pdf
While there may be many reasons individuals do not vote in local elect.pdfWhile there may be many reasons individuals do not vote in local elect.pdf
While there may be many reasons individuals do not vote in local elect.pdf
EricVaCYoungs
 
Which set of classification values indicates the most extensive and pr.pdf
Which set of classification values indicates the most extensive and pr.pdfWhich set of classification values indicates the most extensive and pr.pdf
Which set of classification values indicates the most extensive and pr.pdf
EricVaCYoungs
 
Which statement is correct about goodwill related to investments in as.pdf
Which statement is correct about goodwill related to investments in as.pdfWhich statement is correct about goodwill related to investments in as.pdf
Which statement is correct about goodwill related to investments in as.pdf
EricVaCYoungs
 
which regulation-act led to the development of fiber optic networks- a.pdf
which regulation-act led to the development of fiber optic networks- a.pdfwhich regulation-act led to the development of fiber optic networks- a.pdf
which regulation-act led to the development of fiber optic networks- a.pdf
EricVaCYoungs
 
Which statement accurately describes a wound edge condition and its et.pdf
Which statement accurately describes a wound edge condition and its et.pdfWhich statement accurately describes a wound edge condition and its et.pdf
Which statement accurately describes a wound edge condition and its et.pdf
EricVaCYoungs
 
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdfWhich of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
EricVaCYoungs
 
Which of these is an ecological community- A- all of the species of b.pdf
Which of these is an ecological community-  A- all of the species of b.pdfWhich of these is an ecological community-  A- all of the species of b.pdf
Which of these is an ecological community- A- all of the species of b.pdf
EricVaCYoungs
 
Which of these is NOT true of antibodies and T cell receptors- They bo.pdf
Which of these is NOT true of antibodies and T cell receptors- They bo.pdfWhich of these is NOT true of antibodies and T cell receptors- They bo.pdf
Which of these is NOT true of antibodies and T cell receptors- They bo.pdf
EricVaCYoungs
 
Which of these is NOT true of natural killer cells- They are a type of.pdf
Which of these is NOT true of natural killer cells- They are a type of.pdfWhich of these is NOT true of natural killer cells- They are a type of.pdf
Which of these is NOT true of natural killer cells- They are a type of.pdf
EricVaCYoungs
 
Which of the following would be an examples of Structure at the Landsc (1).pdf
Which of the following would be an examples of Structure at the Landsc (1).pdfWhich of the following would be an examples of Structure at the Landsc (1).pdf
Which of the following would be an examples of Structure at the Landsc (1).pdf
EricVaCYoungs
 
Which one is MOST incorrect- (3 points) Which of the following is most.pdf
Which one is MOST incorrect- (3 points) Which of the following is most.pdfWhich one is MOST incorrect- (3 points) Which of the following is most.pdf
Which one is MOST incorrect- (3 points) Which of the following is most.pdf
EricVaCYoungs
 
Which of the following was an evolutionary benefit of polarity- Polari.pdf
Which of the following was an evolutionary benefit of polarity- Polari.pdfWhich of the following was an evolutionary benefit of polarity- Polari.pdf
Which of the following was an evolutionary benefit of polarity- Polari.pdf
EricVaCYoungs
 
Which of the following would generate the fewest ATP- Assume complete.pdf
Which of the following would generate the fewest ATP- Assume complete.pdfWhich of the following would generate the fewest ATP- Assume complete.pdf
Which of the following would generate the fewest ATP- Assume complete.pdf
EricVaCYoungs
 

More from EricVaCYoungs (20)

Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdfWhy do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
Why do you think companies like Amazon- Hulu- and Netflix use CloudFro.pdf
 
Why is northwest Europe among the mildest climates for its latitude- I.pdf
Why is northwest Europe among the mildest climates for its latitude- I.pdfWhy is northwest Europe among the mildest climates for its latitude- I.pdf
Why is northwest Europe among the mildest climates for its latitude- I.pdf
 
Why is sufficient chlorine added to raw water (prechlorination) to go.pdf
Why is sufficient chlorine added to raw water (prechlorination) to go.pdfWhy is sufficient chlorine added to raw water (prechlorination) to go.pdf
Why is sufficient chlorine added to raw water (prechlorination) to go.pdf
 
Who is responsible for securing the data in the cloud- Why is disaster.pdf
Who is responsible for securing the data in the cloud- Why is disaster.pdfWho is responsible for securing the data in the cloud- Why is disaster.pdf
Who is responsible for securing the data in the cloud- Why is disaster.pdf
 
White-collar crime costs society more financially each year than all o.pdf
White-collar crime costs society more financially each year than all o.pdfWhite-collar crime costs society more financially each year than all o.pdf
White-collar crime costs society more financially each year than all o.pdf
 
Whispering Winds Corporation is authorized to issue both preferred and.pdf
Whispering Winds Corporation is authorized to issue both preferred and.pdfWhispering Winds Corporation is authorized to issue both preferred and.pdf
Whispering Winds Corporation is authorized to issue both preferred and.pdf
 
While undertaking the nutritional assessment with Tom you note he has.pdf
While undertaking the nutritional assessment with Tom you note he has.pdfWhile undertaking the nutritional assessment with Tom you note he has.pdf
While undertaking the nutritional assessment with Tom you note he has.pdf
 
While there may be many reasons individuals do not vote in local elect.pdf
While there may be many reasons individuals do not vote in local elect.pdfWhile there may be many reasons individuals do not vote in local elect.pdf
While there may be many reasons individuals do not vote in local elect.pdf
 
Which set of classification values indicates the most extensive and pr.pdf
Which set of classification values indicates the most extensive and pr.pdfWhich set of classification values indicates the most extensive and pr.pdf
Which set of classification values indicates the most extensive and pr.pdf
 
Which statement is correct about goodwill related to investments in as.pdf
Which statement is correct about goodwill related to investments in as.pdfWhich statement is correct about goodwill related to investments in as.pdf
Which statement is correct about goodwill related to investments in as.pdf
 
which regulation-act led to the development of fiber optic networks- a.pdf
which regulation-act led to the development of fiber optic networks- a.pdfwhich regulation-act led to the development of fiber optic networks- a.pdf
which regulation-act led to the development of fiber optic networks- a.pdf
 
Which statement accurately describes a wound edge condition and its et.pdf
Which statement accurately describes a wound edge condition and its et.pdfWhich statement accurately describes a wound edge condition and its et.pdf
Which statement accurately describes a wound edge condition and its et.pdf
 
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdfWhich of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
Which of these is NOT true of antibodies and T cell receptors- They bo (1).pdf
 
Which of these is an ecological community- A- all of the species of b.pdf
Which of these is an ecological community-  A- all of the species of b.pdfWhich of these is an ecological community-  A- all of the species of b.pdf
Which of these is an ecological community- A- all of the species of b.pdf
 
Which of these is NOT true of antibodies and T cell receptors- They bo.pdf
Which of these is NOT true of antibodies and T cell receptors- They bo.pdfWhich of these is NOT true of antibodies and T cell receptors- They bo.pdf
Which of these is NOT true of antibodies and T cell receptors- They bo.pdf
 
Which of these is NOT true of natural killer cells- They are a type of.pdf
Which of these is NOT true of natural killer cells- They are a type of.pdfWhich of these is NOT true of natural killer cells- They are a type of.pdf
Which of these is NOT true of natural killer cells- They are a type of.pdf
 
Which of the following would be an examples of Structure at the Landsc (1).pdf
Which of the following would be an examples of Structure at the Landsc (1).pdfWhich of the following would be an examples of Structure at the Landsc (1).pdf
Which of the following would be an examples of Structure at the Landsc (1).pdf
 
Which one is MOST incorrect- (3 points) Which of the following is most.pdf
Which one is MOST incorrect- (3 points) Which of the following is most.pdfWhich one is MOST incorrect- (3 points) Which of the following is most.pdf
Which one is MOST incorrect- (3 points) Which of the following is most.pdf
 
Which of the following was an evolutionary benefit of polarity- Polari.pdf
Which of the following was an evolutionary benefit of polarity- Polari.pdfWhich of the following was an evolutionary benefit of polarity- Polari.pdf
Which of the following was an evolutionary benefit of polarity- Polari.pdf
 
Which of the following would generate the fewest ATP- Assume complete.pdf
Which of the following would generate the fewest ATP- Assume complete.pdfWhich of the following would generate the fewest ATP- Assume complete.pdf
Which of the following would generate the fewest ATP- Assume complete.pdf
 

Recently uploaded

HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 

Recently uploaded (20)

HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 

Write a C program for the following- Create a doubly linked list- (-99.pdf

  • 1. Write a C program for the following: Create a doubly linked list. (-999 to stop entering the elements). Make sure one of the entered elements is 42. If 42 is not entered, the program should display an error message. Delete an element before the existing linked list element 42. If there are more than one occurrence of 42, give user the choice where the new element must be deleted. Sample Input/Output 1 Input 42 19 32 45 42 39 -999 Output 2 occurrence of 42 found. Where should the deletion occur? Input 2 Output 42 19 32 42 39 Sample Input/Output 2 Input 42 19 32 45 42 39 -999 Output 2 occurrence of 42 found. Where should the deletion occur? Input 1 Output No element before 42