?>
profile image
Announcements
No new announcements.
mentora icon
bookmark
Table of Contents

    Doubly Linked List in C Programming

    In this lesson, we will understand what is Doubly Linked List in C Programming and how to create them along with some examples.

    What is Doubly Linked List in C

    Similar to a Singly Linked List, a Doubly Linked List in C is a data structure where data is stored in structures called nodes. However, in a doubly linked list, each node has three parts: the data part, the previous pointer part, and the next pointer part.

    • The data part stores the data.
    • The previous pointer part stores the memory address of the previous node.
    • The next pointer part stores the memory address of the next node, as shown in the image below.
    c doubly linked list

    In the above image, start is a pointer to a structure that stores the memory address of the first node

    The first node consists of three parts: the data part, and two pointer parts, prev and next. The prev part stores the memory address of the previous node, while the next part stores the memory address of the next node

    In a doubly linked list, data is not stored in contiguous memory locations. A new node can be created anywhere in memory at runtime.

    Similar to a singly linked list, we can create additional nodes by linking each newly created node with the last node.

    Note

    The above memory addresses are imaginary and used for explaining doubly linked list. Actual addresses can vary from computer to computer.

    Unlock This Lesson & Start Learning!

    Get full access to this lesson, practical exercises, quizzes, and your Mentora AI Tutor.

    Special Offer, use coupon code DWL6BC to get additional discount of 10% on all subscription. Hurry limited time offer.

    20% off

    1 Month

    ₹323
    ₹259
    Unlock Now

    Renews at ₹259/month.

    Manual renewal required.
    No automatic charges.


    • ✓ Premium lessons access
    • ✓ Quizzes and exercises
    • ✓ Mentora AI Tutor
    32% off

    3 Months

    ₹971
    ₹659
    Unlock Now

    Equivalent to ₹219.67/month.

    Manual renewal required.
    No automatic charges.


    • ✓ Premium lessons access
    • ✓ Quizzes and exercises
    • ✓ Mentora AI Tutor
    40% off

    6 Months

    ₹1942
    ₹1159
    Unlock Now

    Equivalent to ₹193.17/month.

    Manual renewal required.
    No automatic charges.


    • ✓ Premium lessons access
    • ✓ Quizzes and exercises
    • ✓ Mentora AI Tutor
    44% off

    12 Months

    ₹3884
    ₹2159
    Unlock Now

    Equivalent to ₹179.92/month.

    Manual renewal required.
    No automatic charges.


    • ✓ Premium lessons access
    • ✓ Quizzes and exercises
    • ✓ Mentora AI Tutor
    Mentora Question Asked: 0 / 20

    Hi, I’m Mentora!

    I’m your personal AI tutor from Dremendo. Ask me anything, and I’ll help you understand it in a simple and easy way.