ECE244H1 Chapter Notes - Chapter 13: Member Variable
Document Summary
Combines the action of a dereferencing operator * and a dot operator to specify a member of dynamic struct or object that is pointed to by a given pointer. What"s the use of null: give a value to a pointer variable that otherwise would not have a value. Prevents inadvertent reference to memory (null is not the address of any memory location: end marker. Marks the end of a link list. Special constant value that is used in the same way as null. Can only be assigned to a pointer. List of nodes which each node has a member variable that is a pointer that points to the next node in the list. Last node has null as the value of its member pointer variable. Inserting a node at the head of the list. Use new operator to create a new node. Always keep one pointer variable pointing to the head of link list: searching a node in link list.