Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.99 KB

Chapter_10.md

File metadata and controls

34 lines (29 loc) · 1.99 KB

Exercise Solutions Chapter 10

1.

Test run of the fifteen programs presented in this chapter:

2.

Implementation of a function that inserts an entry in a linked list and complementing code to test the function:

3.

Implementation of a function that inserts an entry in a linked list. The list have a header entry that points to the first actual element in the list. This header makes it possible to use the add function to insert new entries anywhere in the list.

The function and complementing code that tests the function:

4.

Implementation of a function that removes an entry in a linked list. The argument to the function is the element before the element that shall be removed. The list is single linked so we can not use the element that shall be removed as argument since we do not know what links to the element to be removed.

The function and complementing code that tests the function: