CS 225 Lecture Notes - Lecture 4: A56 Road, Memory Address, Dereference Operator

59 views3 pages

Document Summary

Remember client code is allowed to use the class headers, then block off access to the class implementations. Certain parts of memory does what they are told, other parts of memory just does things. Just like on a map, certain parts of memory, we don"t know what goes on on a motherboard. Null: we can ask whether memory is null, but we cannot access null. It is usually represented as 0 or 0x0. Stack memory; goes up the memory; address in memory is dependent on size of type. Variables and memory in c++ when we need a variable such as: int x; // memory a40 it will find the next available memory location for x x=5; x=7; // can be changed. Then once the variable x is no longer useful to the program such as at the end of a function or goes out of scope, it won"t be accessable. Now when we want a variable: sphere s;

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