Singly linked list Introduction

Singly linked list Introduction

What is a Linked list?

A linked list is a linear data structure used to store a similar type of data in memory. linked lists contain a collection of nodes in a sequential manner. single linked lists may contain multiple data fields

note

node is block which contains its data and address of the next node

The basic structure of a node

each node follows common basic code, we can store multiple data fields and least one address field is mandatory

struct node
{
int data; // Data
struct node * next; // Address
};

Types of linked lists

Last updated on by vishal devxo