First page Back Continue Last page Graphics
Self Referential Structure
struct Node
{
Item item; // data stored in the node
struct Node * next; // pointer to next node
}
A pointer to the structure is defined within the structure.
Creating a node:
Node * new_node = new Node;