Linked list is a data structure contains group of nodes. Each node consists of a data variable and a reference or pointer varaible to the next node. The size of the list changes dynamically.
struct nodeIn the above C code node is the structure name and data variable is info and next is the reference/pointer variable. next can be used to access the next node details.
{
int info;
struct node *next;
};
No comments:
Post a Comment