Linked List 1



Example of linked list

  • Linked list is a data structure that consists of a sequence of data records such that each record there is a field that contains a reference to the next record in  the sequence.
    • Linked list allows insertion and deletion of any element at any location.
    • Linked list contsist of 2 type a single linked list and double linked list.
    • If you need to allocate memory dynamically (in runtime), you can use malloc in C/C++. 


      • This is the example of a single linked list:  insert.



        And this is the example of a single linked list : Delete

        Comments