The document describes sample code for a linked list data structure in C programming. It includes the functions to input nodes, print the list, update a node, and delete a node from the list. Step-by-step explanations are provided for the ll_input() function, which adds nodes to the empty list or to the end of the existing list.
C++ Concepts and Ranges - How to use them?Mateusz Pusz
These are the slides from my Meeting C++ 2018 talk. You can find the recording here: https://www.youtube.com/watch?v=pe05ZWdh0N0. All my other talks can be found here: https://train-it.eu/resources.
---
The most of the Concepts TS and Ranges TS is merged into the C++20 standard draft document. The talk will present a current design of those features and will provide suggestions on how to use them in our source code. That presentation is meant to inspire discussion on how should we use those long-awaited features while building tools and the C++ Standard Library.
C++ Concepts and Ranges - How to use them?Mateusz Pusz
These are the slides from my Meeting C++ 2018 talk. You can find the recording here: https://www.youtube.com/watch?v=pe05ZWdh0N0. All my other talks can be found here: https://train-it.eu/resources.
---
The most of the Concepts TS and Ranges TS is merged into the C++20 standard draft document. The talk will present a current design of those features and will provide suggestions on how to use them in our source code. That presentation is meant to inspire discussion on how should we use those long-awaited features while building tools and the C++ Standard Library.
Compiler Construction | Lecture 6 | Introduction to Static AnalysisEelco Visser
Lecture introducing the need for static analysis in addition to parsing, the complications caused by names, and an introduction to name resolution with scope graphs
Sometimes you see code that is perfectly OK according to the definition of the language, but which is flawed because it breaks too many established idioms and conventions. On the other hand, a solid piece of code is something that looks like it is written by an experienced person who cares about professionalism in programming.
A presentation at Norwegian Developer Conference 2010
Big picture of category theory in scala with deep dive into contravariant and...Piotr Paradziński
A big picture of category theory in Scala - starting from regular functors with additional structure (Apply, Applicative, Monad) to Comonads. Usually, we think about structures like Monoids in a monoidal category with particular tensor. In here I analyze just signatures of different abstractions.
Exploration of Contravariant functors as a way to model computation "backward" or abstract over input with the ability to prepend operation. Examples for predicates, sorting, show and function input (or any other function parameter except the last one).
Profunctors as abstraction unifying Functors and Contravariant functors to model both input and output. Example for Profunctor - function with one argument.
Relation to Bifunctors, Kan extensions, Adjunctions, and Free constructions.
How to do Test-Driven Development in C illustrated by solving a Recently Used List kata.
Similar slides can be found here http://www.olvemaudal.com/talks
An Execution-Semantic and Content-and-Context-Based Code-Clone Detection and ...Kamiya Toshihiro
Toshihiro Kamiya: An Execution-Semantic and Content-and-Context-Based Code-Clone Detection and Analysis,
Proceedings of the 9th IEEE International Workshop on Software Clones (IWSC'15), pp. 1-7 (2015).
With the introduction of FPGAs in the cloud, there is an increasing need for solutions able to accelerate traditional CPU code with minimum burden on the user, while retaining competitive performance. In this presentation, we illustrate OXiGen, a tool for the acceleration of dataflow-oriented C applications on FPGA-based systems. The tool offers a complete design flow to optimize C functions into dataflow accelerated kernels and an automated frequency-aware design-space exploration that selects an optimal set of optimizations for the given function. It allows to automatically simulate the resulting function by generating a testbench for the function. We compare the generated hardware designs against both the respective software implementations and state-of-the-art dataflow designs, reaching comparable performance with a hardware design generated in a few seconds.
Why functional programming and category theory strongly mattersPiotr Paradziński
Abstractions of Category Theory to define abstractions (Functor, Applicative, Monad, Comonad, Coyoneda) commonly used in functional programming (FP). Using definitions from Category Theory to reason about modular and composable design. Examples based on Haskell papers: Functional pearls translated to Scala.
Let's turn the table. Suppose your goal is to deliberately create buggy programs in C and C++ with serious security vulnerabilities that can be "easily" exploited. Then you need to know about things like stack smashing, shellcode, arc injection, return-oriented programming. You also need to know about annoying protection mechanisms such as address space layout randomization, stack canaries, data execution prevention, and more. These slides will teach you the basics of how to deliberately write insecure programs in C and C++.
A PDF version of the slides can be downloaded from my homepage: http://olvemaudal.com/talks
Here is a video recording of me presenting these slides at NDC 2014: http://vimeo.com/channels/ndc2014/97505677
Enjoy!
Compiler Construction | Lecture 6 | Introduction to Static AnalysisEelco Visser
Lecture introducing the need for static analysis in addition to parsing, the complications caused by names, and an introduction to name resolution with scope graphs
Sometimes you see code that is perfectly OK according to the definition of the language, but which is flawed because it breaks too many established idioms and conventions. On the other hand, a solid piece of code is something that looks like it is written by an experienced person who cares about professionalism in programming.
A presentation at Norwegian Developer Conference 2010
Big picture of category theory in scala with deep dive into contravariant and...Piotr Paradziński
A big picture of category theory in Scala - starting from regular functors with additional structure (Apply, Applicative, Monad) to Comonads. Usually, we think about structures like Monoids in a monoidal category with particular tensor. In here I analyze just signatures of different abstractions.
Exploration of Contravariant functors as a way to model computation "backward" or abstract over input with the ability to prepend operation. Examples for predicates, sorting, show and function input (or any other function parameter except the last one).
Profunctors as abstraction unifying Functors and Contravariant functors to model both input and output. Example for Profunctor - function with one argument.
Relation to Bifunctors, Kan extensions, Adjunctions, and Free constructions.
How to do Test-Driven Development in C illustrated by solving a Recently Used List kata.
Similar slides can be found here http://www.olvemaudal.com/talks
An Execution-Semantic and Content-and-Context-Based Code-Clone Detection and ...Kamiya Toshihiro
Toshihiro Kamiya: An Execution-Semantic and Content-and-Context-Based Code-Clone Detection and Analysis,
Proceedings of the 9th IEEE International Workshop on Software Clones (IWSC'15), pp. 1-7 (2015).
With the introduction of FPGAs in the cloud, there is an increasing need for solutions able to accelerate traditional CPU code with minimum burden on the user, while retaining competitive performance. In this presentation, we illustrate OXiGen, a tool for the acceleration of dataflow-oriented C applications on FPGA-based systems. The tool offers a complete design flow to optimize C functions into dataflow accelerated kernels and an automated frequency-aware design-space exploration that selects an optimal set of optimizations for the given function. It allows to automatically simulate the resulting function by generating a testbench for the function. We compare the generated hardware designs against both the respective software implementations and state-of-the-art dataflow designs, reaching comparable performance with a hardware design generated in a few seconds.
Why functional programming and category theory strongly mattersPiotr Paradziński
Abstractions of Category Theory to define abstractions (Functor, Applicative, Monad, Comonad, Coyoneda) commonly used in functional programming (FP). Using definitions from Category Theory to reason about modular and composable design. Examples based on Haskell papers: Functional pearls translated to Scala.
Let's turn the table. Suppose your goal is to deliberately create buggy programs in C and C++ with serious security vulnerabilities that can be "easily" exploited. Then you need to know about things like stack smashing, shellcode, arc injection, return-oriented programming. You also need to know about annoying protection mechanisms such as address space layout randomization, stack canaries, data execution prevention, and more. These slides will teach you the basics of how to deliberately write insecure programs in C and C++.
A PDF version of the slides can be downloaded from my homepage: http://olvemaudal.com/talks
Here is a video recording of me presenting these slides at NDC 2014: http://vimeo.com/channels/ndc2014/97505677
Enjoy!
Many times you might have wondered about all the complex and strange syntaxes of functions, variables and pointers in c. But these declarations are not as complex as it looks at first. When you know where to look and how to look, reading these syntaxes would become a piece of cake. Just see this presentation and you will find it very easy to read all the complexities in c.
This topic-based on Compiler Design Subject, III B.Tech-CSE Students, Intermediate Code Generation is the 3rd module of compiler design subject, these topics totally related to the second subjective assignment of Academic Writing in Swayam online course.
Machine Learning With Python From India’s Most Advanced Learner’s Community. 200+ High-Quality Lectures. 4 Months Live Mentor-ship. 15+ Projects. Industry Insights.
Visit- https://insideaiml.com/course-details/Machine-Learning-with-Python-Statistics
Introduction to Python Programming | InsideAIMLVijaySharma802
Machine Learning With Python From India’s Most Advanced Learner’s Community. 200+ High-Quality Lectures. 4 Months Live Mentor-ship. 15+ Projects. Industry Insights.
Visit- https://insideaiml.com/course-details/Machine-Learning-with-Python-Statistics
19. Java data structures algorithms and complexityIntro C# Book
In this chapter we will compare the data structures we have learned so far by the performance (execution speed) of the basic operations (addition, search, deletion, etc.). We will give specific tips in what situations what data structures to use.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
This document is by explosives industry in which document discussed manufacturing process and flow charts details by nitric acid and sulfuric acid and tetra benzene and step by step details of explosive industry explosives industry is produced raw materials and manufacture it by manufacturing process
Toll tax management system project report..pdfKamal Acharya
Toll Tax Management System is a web based application that can provide all the information related to toll plazas and the passenger checks in and pays the amount, then he/she will be provided by a receipt. With this receipt he/she can leave the toll booth without waiting for any verification call.
The information would also cover registration of staff, toll plaza collection, toll plaza collection entry for vehicles, date wise report entry, Vehicle passes and passes reports b/w dates.
Calpeda pumps are renowned for their reliability and efficiency in fluid management solutions. With a legacy spanning over 70 years, Calpeda specializes in producing a wide range of pumps, including centrifugal, submersible, and booster pumps, catering to various industrial, commercial, and residential applications. Their commitment to innovation and quality engineering ensures optimal performance and longevity in fluid handling systems.
Event Management System Vb Net Project Report.pdfKamal Acharya
In present era, the scopes of information technology growing with a very fast .We do not see any are untouched from this industry. The scope of information technology has become wider includes: Business and industry. Household Business, Communication, Education, Entertainment, Science, Medicine, Engineering, Distance Learning, Weather Forecasting. Carrier Searching and so on.
My project named “Event Management System” is software that store and maintained all events coordinated in college. It also helpful to print related reports. My project will help to record the events coordinated by faculties with their Name, Event subject, date & details in an efficient & effective ways.
In my system we have to make a system by which a user can record all events coordinated by a particular faculty. In our proposed system some more featured are added which differs it from the existing system such as security.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
1. Professor Joongheon Kim
https://joongheon.github.io
C Programming
C Programming
Linked List (Examples)
Prof. Joongheon Kim
Korea University, School of Electrical Engineering
Artificial Intelligence and Mobility Laboratory
https://joongheon.github.io
joongheon@korea.ac.kr
3. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (Main Function)
3
ID value next
int int
Pointer
(NODE)
NODE
NULL
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
5. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
5
ID value next
int int
Pointer
(NODE)
NODE
NULL
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
HEAD == NULL
11
INT:
in_value
1
INT:
in_ID
6. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
6
ID value next
int int
Pointer
(NODE)
NODE
HEAD == NULL
NODE
0xf1
NULL
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
11
INT:
in_value
1
INT:
in_ID
7. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
7
ID value next
int int
Pointer
(NODE)
NODE
HEAD == NULL
NODE
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
11
INT:
in_value
1
INT:
in_ID
8. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
8
ID value next
int int
Pointer
(NODE)
NODE
HEAD == NULL
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 NULL
11
INT:
in_value
1
INT:
in_ID
9. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
9
ID value next
int int
Pointer
(NODE)
NODE
HEAD == NULL
0xf1
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 NULL
11
INT:
in_value
1
INT:
in_ID
10. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
10
ID value next
int int
Pointer
(NODE)
NODE
HEAD == NULL
0xf1
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 NULL
(ID, Values): (1, 11)
/* We will study print() later */ 11
INT:
in_value
1
INT:
in_ID
11. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
11
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (1st iteration)
0xf1
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 NULL
22
INT:
in_value
2
INT:
in_ID
12. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
12
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 NULL
0xcf
HEAD != NULL (1st iteration)
22
INT:
in_value
2
INT:
in_ID
13. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
13
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
HEAD != NULL (1st iteration)
22
INT:
in_value
2
INT:
in_ID
14. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
14
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
HEAD != NULL (1st iteration)
2 22 NULL
22
INT:
in_value
2
INT:
in_ID
15. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
15
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
HEAD != NULL (1st iteration)
2 22 NULL
22
INT:
in_value
2
INT:
in_ID
16. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
16
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
(ID, Values): (1, 11) (2, 22)
/* We will study ll_print() later */ 22
INT:
in_value
2
INT:
in_ID
HEAD != NULL (1st iteration)
17. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
17
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (2nd iteration)
0xf1
0xf1
0xcf
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
33
INT:
in_value
3
INT:
in_ID
18. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
18
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (2nd iteration)
33
INT:
in_value
3
INT:
in_ID
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
0xda
19. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
19
ID value next
int int
Pointer
(NODE)
NODE
33
INT:
in_value
3
INT:
in_ID
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
HEAD != NULL (2nd iteration)
20. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
20
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (2nd iteration)
33
INT:
in_value
3
INT:
in_ID
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
21. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
21
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (2nd iteration)
33
INT:
in_value
3
INT:
in_ID
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
22. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_input() Function)
22
ID value next
int int
Pointer
(NODE)
NODE
HEAD != NULL (2nd iteration)
33
INT:
in_value
3
INT:
in_ID
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22) (3, 33)
/* We will study ll_print() later */
Head
0xf1 0xcf 0xda NULL
25. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
25
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
26. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
26
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values):
27. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
27
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11)
28. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
28
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
oxcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11)
29. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
29
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22)
30. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
30
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22)
31. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
31
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22) (3, 33)
32. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
32
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
NULL
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22) (3, 33)
33. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_print() Function)
33
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
NULL
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
(ID, Values): (1, 11) (2, 22) (3, 33)
35. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
35
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
NULL
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
36. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
36
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
37. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
37
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
1 != 3
38. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
38
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
39. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
39
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
2 != 3
40. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
40
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
41. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
41
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 33 NULL
3
INT:
update_ID
3== 3
42. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
42
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
update_ID
99
INT:
update_value
43. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_update() Function)
43
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
update_ID
99
INT:
update_value
(ID, Values): (1, 11) (2, 22) (3, 99)
45. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
45
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 1)
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
1
INT:
delete_ID
46. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
46
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 1)
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
1
INT:
delete_ID
47. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
47
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 1)
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
1
INT:
delete_ID
1 == 1
48. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
48
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 1)
0xf1
0xcf
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
1
INT:
delete_ID
49. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
49
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 1)
0xf1
0xcf
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
1
INT:
delete_ID
50. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
50
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 2 != 1)
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
2
INT:
delete_ID
51. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
51
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
2
INT:
delete_ID
Delete the first NODE (delete_ID == 2 != 1)
52. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
52
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
2
INT:
delete_ID
1 != 2
Delete the first NODE (delete_ID == 2 != 1)
53. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
53
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
2
INT:
delete_ID
Delete the first NODE (delete_ID == 2 != 1)
Pointer (NODE): tmp
54. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
54
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
Pointer (NODE): tmp
55. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
55
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
Pointer (NODE): tmp
56. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
56
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
Pointer (NODE): tmp
57. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
57
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
Pointer (NODE): tmp
2 == 2
58. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
58
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
Pointer (NODE): tmp
59. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
59
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xf1
Pointer (NODE): tmp
60. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
60
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xf1
Pointer (NODE): tmp
61. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
61
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xf1
Pointer (NODE): tmp
0xda != NULL
62. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
62
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xf1
Pointer (NODE): tmp
63. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
63
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xda
Pointer (NODE): tmp
64. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
64
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xda
Pointer (NODE): tmp
0xda != NULL
65. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
65
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
0xda
Pointer (NODE): tmp
66. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
66
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
NULL
Pointer (NODE): tmp
67. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
67
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 2 != 1)
2
INT:
delete_ID
NULL
Pointer (NODE): tmp
NULL == NULL
69. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
69
ID value next
int int
Pointer
(NODE)
NODE
Delete the first NODE (delete_ID == 3 != 1)
0xf1
0xf1
0xda
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
delete_ID
70. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
70
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
delete_ID
Delete the first NODE (delete_ID == 3 != 1)
71. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
71
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
delete_ID
1 != 3
Delete the first NODE (delete_ID == 3 != 1)
72. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
72
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
3
INT:
delete_ID
Delete the first NODE (delete_ID == 3 != 1)
Pointer (NODE): tmp
73. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
73
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xda
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
74. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
74
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xf1
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
75. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
75
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
76. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
76
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xf1
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
2 != 3
77. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
77
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xcf
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
78. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
78
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
79. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
79
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 0xda
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
3 == 3
80. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
80
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
Pointer (NODE): tmp
81. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
81
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
0xcf
Pointer (NODE): tmp
82. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
82
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
0xda
3 99 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
0xcf
Pointer (NODE): tmp
83. Professor Joongheon Kim
https://joongheon.github.io
C Programming
Linked List Sample Code (ll_delete() Function)
83
ID value next
int int
Pointer
(NODE)
NODE
0xf1
0xf1
0xcf
0xda
Pointer (NODE): head
Pointer (NODE): tail
Pointer (NODE): ptr
1 11 0xcf
0xcf
2 22 NULL
Delete the first NODE (delete_ID == 3 != 1)
3
INT:
delete_ID
0xcf
Pointer (NODE): tmp