Click on any exercise below to see the source code, program output and explanation of the code. Programs in this section make use of linked list. A linked list is a collection of linearly connected structures. Each node in a linked list must have at least a pointer field which points to the next node of the list.
Exercise 5.5. Write a C program that generates 10 random numbers, store them in a linked list, display the content of the list and search for an item on the list using the binary search algorithm. Once the search is done, delete the list.