Tuesday, February 14, 2012

What is linked list?

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 node
int info;
struct node *next;
In 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.

No comments:

Popular Posts