What is the Linked List in Data Structure? | Data Structure Tutorial
In this article, you will learn about:
- What is a Linked List?
- How to represent the Linked List?
- Applications of Linked List
What is a Linked List?
A Linked List belongs in the category of the linear data structure that contains the series of connected nodes. Here, each node has two parts which are data and the address of the next node. The address of the first node has a special name called HEAD and also the last node in the linked list can be identified because its next node is linked with NULL.
There are different types of Linked Lists:
- Singly Linked List
- Doubly Linked List
- Circular Linked List
How to represent the Linked List?
Each node of the linked List consists of:
- A data item
- An address of another node
We wrap both the data item and the next reference node in a struct as:
struct node
{
int data;
struct node *node;
}
Each struct node is divided into two parts which are the data part and a pointer to another struct node.
The linked list has the power of breaking the chain and rejoining it. We can switch and change the positions of elements by doing the following steps:
- Create a new struct node and allocate the memory to the node.
- Insert the data value.
- Points the address of the next node in the address node of the struct node.
Applications of the Linked List
- Dynamic memory allocation
- Hash Tables, Graph.
- It helps in undoing functionality of software
- For the implementation of stacks and queues


