Declarations for Linked Lists
A program can keep track of the front node by using a pointer variable such as head_ptr.
Notice that head_ptr is not a Node -- it is a pointer to a Node.
We represent the empty list by storing null in the Head pointer.
head_ptr
null
Previous slide
Next slide
Back to first slide
View graphic version