SINGLY LINKED LIST
The singly linked list is a data structure that contains two parts, i.e., one is the data part, and the other one is the address part, which contains the address of the next or the successor node. The address part in a node is also known as a pointer. The pointer that holds the address of the initial node is known as a head pointer.
Operations on Singly Linked List:
There are various operations which can be performed on singly linked list. A list of all such operations is given below.
Node Creation:
struct node
{
int data;
struct node *next;
}
struct node *head, *ptr;
ptr = (struct node *)malloc(sizeof(struct node *));