List data structure brings the non-contiguous implementation of data, unlike array which is contiguous in nature. Usually, Array’s size is static in nature which will wastage of memory if it is not being used by the program. In the case of List, one can store the data in a node and the node will have a link to its next value.
The List
The below diagram represents a list where the head is the pointer that always points to the first node of the list and the last node’s next pointer is always null ptr or NULL.
Here each node show has two elements first part is data i.e integer value and the second part is the address of the next node. Below each node, there are 100, 200, 300, and 400. They are the addresses of the node.