CSE 143 Chapter Notes - Chapter 16: Local Variable

101 views2 pages
oliveherring648 and 7 others unlocked
CSE 143 Full Course Notes
6
CSE 143 Full Course Notes
Verified Note
6 documents

Document Summary

Linkedlists are composed of individual elements called nodes. A basic list of nodes is an object with two fields: one for storing a single item of data and the other for storing a reference to the next node in the list. When creating linkedlists, if you can keep a reference to the front of the list, then you can get anything in the list. You"ll usually use a single variable of type listnode that refers to the front of the list: Variable list is not a node, but is capable to referring to one. To get an actual node, you need to call new; To have the next field point to a new node: You can get rid of nodes by reassigning the variable to have it point to a different node. Declare a local variable of type listnode to access the different nodes of the list and not lose the original.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions