Array vs Linked List

Two nodes, each holding data and a pointer; the last points to NULL
A singly linked list: each node points to the next; the last one points to NULL.

Toolkit

The following is some useful member functions of linked lists that you could implement when you build your own linked list class.