SlideShare a Scribd company logo
1 of 1
Download to read offline
Missing Node while Printing a Sorted List (C)
I have a linked list that is being sorted alphabetically; however, when printing the list I seem to
be missing a node in the output, I believe what is happening is that one of the nodes is being set
to NULL while being swapped
Sorting and Swapping:
Printing the List:
Additionally, here is the file that the code reads from to create the list:
The sorting functions do appear to be sorting the list as needed, but I think one of the nodes is
NULL since the issue only appeared after the implementation of sortList(), so I would appreciate
the corrections wherever they are needed. Thanks!

More Related Content

More from Robert4vCParsonsn

Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdf
Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdfMr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdf
Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdfRobert4vCParsonsn
 
mother delivers a baby that has neonatal drug withdrawal- When talking.pdf
mother delivers a baby that has neonatal drug withdrawal- When talking.pdfmother delivers a baby that has neonatal drug withdrawal- When talking.pdf
mother delivers a baby that has neonatal drug withdrawal- When talking.pdfRobert4vCParsonsn
 
Most of the cells in the body carry receptors for the insulin hormone.pdf
Most of the cells in the body carry receptors for the insulin hormone.pdfMost of the cells in the body carry receptors for the insulin hormone.pdf
Most of the cells in the body carry receptors for the insulin hormone.pdfRobert4vCParsonsn
 
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdf
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdfMonty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdf
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdfRobert4vCParsonsn
 
Modular bilis are used to reduce the number of 80M s when a product co.pdf
Modular bilis are used to reduce the number of 80M s when a product co.pdfModular bilis are used to reduce the number of 80M s when a product co.pdf
Modular bilis are used to reduce the number of 80M s when a product co.pdfRobert4vCParsonsn
 
Modern corporations have always dominated the U-S- economy--going all.pdf
Modern corporations have always dominated the U-S- economy--going all.pdfModern corporations have always dominated the U-S- economy--going all.pdf
Modern corporations have always dominated the U-S- economy--going all.pdfRobert4vCParsonsn
 
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdf
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdfMod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdf
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdfRobert4vCParsonsn
 
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdf
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdfMimite Vaso What target market did Applebee's pursue in its recent ove.pdf
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdfRobert4vCParsonsn
 
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdf
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdfMerge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdf
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdfRobert4vCParsonsn
 
menu' is very easily copied and is not a good soutce of custained adva.pdf
menu' is very easily copied and is not a good soutce of custained adva.pdfmenu' is very easily copied and is not a good soutce of custained adva.pdf
menu' is very easily copied and is not a good soutce of custained adva.pdfRobert4vCParsonsn
 
Mark all the statements that are correct regarding the image shown bel.pdf
Mark all the statements that are correct regarding the image shown bel.pdfMark all the statements that are correct regarding the image shown bel.pdf
Mark all the statements that are correct regarding the image shown bel.pdfRobert4vCParsonsn
 
Media literacy is an important 21st-century skill- For this discussion.pdf
Media literacy is an important 21st-century skill- For this discussion.pdfMedia literacy is an important 21st-century skill- For this discussion.pdf
Media literacy is an important 21st-century skill- For this discussion.pdfRobert4vCParsonsn
 
Mel and Jan own a ranch in Wyoming as joint tenants- If Jan dies from.pdf
Mel and Jan own a ranch in Wyoming as joint tenants-  If Jan dies from.pdfMel and Jan own a ranch in Wyoming as joint tenants-  If Jan dies from.pdf
Mel and Jan own a ranch in Wyoming as joint tenants- If Jan dies from.pdfRobert4vCParsonsn
 
Match the scapula motion with it proper description- Scapular protract.pdf
Match the scapula motion with it proper description- Scapular protract.pdfMatch the scapula motion with it proper description- Scapular protract.pdf
Match the scapula motion with it proper description- Scapular protract.pdfRobert4vCParsonsn
 
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdf
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdfMatch the letters with the correct term--Choose- Medial meniscus Tibia.pdf
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdfRobert4vCParsonsn
 
Match the item with its description- Action potential Pre-synaptic neu.pdf
Match the item with its description- Action potential Pre-synaptic neu.pdfMatch the item with its description- Action potential Pre-synaptic neu.pdf
Match the item with its description- Action potential Pre-synaptic neu.pdfRobert4vCParsonsn
 
Match the definition (left side column) with the correct phenomenon (r.pdf
Match the definition (left side column) with the correct phenomenon (r.pdfMatch the definition (left side column) with the correct phenomenon (r.pdf
Match the definition (left side column) with the correct phenomenon (r.pdfRobert4vCParsonsn
 
Match the descriptions of the new offering development process with th.pdf
Match the descriptions of the new offering development process with th.pdfMatch the descriptions of the new offering development process with th.pdf
Match the descriptions of the new offering development process with th.pdfRobert4vCParsonsn
 
Match each of the following accounts to its proper balance sheet class.pdf
Match each of the following accounts to its proper balance sheet class.pdfMatch each of the following accounts to its proper balance sheet class.pdf
Match each of the following accounts to its proper balance sheet class.pdfRobert4vCParsonsn
 
Match the cell name to the location in the body- 1234 Closed cavitie.pdf
Match the cell name to the location in the body- 1234   Closed cavitie.pdfMatch the cell name to the location in the body- 1234   Closed cavitie.pdf
Match the cell name to the location in the body- 1234 Closed cavitie.pdfRobert4vCParsonsn
 

More from Robert4vCParsonsn (20)

Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdf
Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdfMr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdf
Mr- and Mrs- Kim Soo use a fiscal year ending July 31 as the taxable y.pdf
 
mother delivers a baby that has neonatal drug withdrawal- When talking.pdf
mother delivers a baby that has neonatal drug withdrawal- When talking.pdfmother delivers a baby that has neonatal drug withdrawal- When talking.pdf
mother delivers a baby that has neonatal drug withdrawal- When talking.pdf
 
Most of the cells in the body carry receptors for the insulin hormone.pdf
Most of the cells in the body carry receptors for the insulin hormone.pdfMost of the cells in the body carry receptors for the insulin hormone.pdf
Most of the cells in the body carry receptors for the insulin hormone.pdf
 
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdf
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdfMonty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdf
Monty Corp- Inc- had a beginning inventory of 100 units of Product RST (1).pdf
 
Modular bilis are used to reduce the number of 80M s when a product co.pdf
Modular bilis are used to reduce the number of 80M s when a product co.pdfModular bilis are used to reduce the number of 80M s when a product co.pdf
Modular bilis are used to reduce the number of 80M s when a product co.pdf
 
Modern corporations have always dominated the U-S- economy--going all.pdf
Modern corporations have always dominated the U-S- economy--going all.pdfModern corporations have always dominated the U-S- economy--going all.pdf
Modern corporations have always dominated the U-S- economy--going all.pdf
 
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdf
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdfMod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdf
Mod 8 Network Layer Worksheet IPv4 hosts have a routing table they use.pdf
 
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdf
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdfMimite Vaso What target market did Applebee's pursue in its recent ove.pdf
Mimite Vaso What target market did Applebee's pursue in its recent ove.pdf
 
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdf
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdfMerge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdf
Merge(numbers- 0-2-5) is called- Complete the table for leftPos and ri.pdf
 
menu' is very easily copied and is not a good soutce of custained adva.pdf
menu' is very easily copied and is not a good soutce of custained adva.pdfmenu' is very easily copied and is not a good soutce of custained adva.pdf
menu' is very easily copied and is not a good soutce of custained adva.pdf
 
Mark all the statements that are correct regarding the image shown bel.pdf
Mark all the statements that are correct regarding the image shown bel.pdfMark all the statements that are correct regarding the image shown bel.pdf
Mark all the statements that are correct regarding the image shown bel.pdf
 
Media literacy is an important 21st-century skill- For this discussion.pdf
Media literacy is an important 21st-century skill- For this discussion.pdfMedia literacy is an important 21st-century skill- For this discussion.pdf
Media literacy is an important 21st-century skill- For this discussion.pdf
 
Mel and Jan own a ranch in Wyoming as joint tenants- If Jan dies from.pdf
Mel and Jan own a ranch in Wyoming as joint tenants-  If Jan dies from.pdfMel and Jan own a ranch in Wyoming as joint tenants-  If Jan dies from.pdf
Mel and Jan own a ranch in Wyoming as joint tenants- If Jan dies from.pdf
 
Match the scapula motion with it proper description- Scapular protract.pdf
Match the scapula motion with it proper description- Scapular protract.pdfMatch the scapula motion with it proper description- Scapular protract.pdf
Match the scapula motion with it proper description- Scapular protract.pdf
 
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdf
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdfMatch the letters with the correct term--Choose- Medial meniscus Tibia.pdf
Match the letters with the correct term--Choose- Medial meniscus Tibia.pdf
 
Match the item with its description- Action potential Pre-synaptic neu.pdf
Match the item with its description- Action potential Pre-synaptic neu.pdfMatch the item with its description- Action potential Pre-synaptic neu.pdf
Match the item with its description- Action potential Pre-synaptic neu.pdf
 
Match the definition (left side column) with the correct phenomenon (r.pdf
Match the definition (left side column) with the correct phenomenon (r.pdfMatch the definition (left side column) with the correct phenomenon (r.pdf
Match the definition (left side column) with the correct phenomenon (r.pdf
 
Match the descriptions of the new offering development process with th.pdf
Match the descriptions of the new offering development process with th.pdfMatch the descriptions of the new offering development process with th.pdf
Match the descriptions of the new offering development process with th.pdf
 
Match each of the following accounts to its proper balance sheet class.pdf
Match each of the following accounts to its proper balance sheet class.pdfMatch each of the following accounts to its proper balance sheet class.pdf
Match each of the following accounts to its proper balance sheet class.pdf
 
Match the cell name to the location in the body- 1234 Closed cavitie.pdf
Match the cell name to the location in the body- 1234   Closed cavitie.pdfMatch the cell name to the location in the body- 1234   Closed cavitie.pdf
Match the cell name to the location in the body- 1234 Closed cavitie.pdf
 

Recently uploaded

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhleson0603
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 

Recently uploaded (20)

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 

Missing Node while Printing a Sorted List (C) I have a linked list t.pdf

  • 1. Missing Node while Printing a Sorted List (C) I have a linked list that is being sorted alphabetically; however, when printing the list I seem to be missing a node in the output, I believe what is happening is that one of the nodes is being set to NULL while being swapped Sorting and Swapping: Printing the List: Additionally, here is the file that the code reads from to create the list: The sorting functions do appear to be sorting the list as needed, but I think one of the nodes is NULL since the issue only appeared after the implementation of sortList(), so I would appreciate the corrections wherever they are needed. Thanks!