Link List
Link List
Link List
Prepared by
Dalton Meitei Thounaojam
Link List
Node
data *next
Fig.: A Link Node.
Link List vs Array
struct node
{
int node;
struct node *next;
};
Types of Link List
else
{
ptr=start;
while(ptr->next!=NULL)
ptr=ptr->next;
ptr->next = new_node;
new_node->next=NULL;
}
}
return start;
}
Operations on a Link List
[END OF LOOP]
Step 5: EXIT
Counting the nodes in a Link List