ECE244H1 Chapter Notes - Chapter 13: Member Variable

52 views3 pages

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.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents