
NOTES4CPP
By: a guest on
Jun 2nd, 2012 | syntax:
None | size: 0.83 KB | hits: 24 | expires: Never
Notes for Book:
-------------------------------------
(*) Access what my pointer points to.
(*) Declaration of a pointer.
4 Attributes of a Variable:
- Address
- Value
- Length (bytes)
- Container
-------------------------------------
Pass By Reference:
passes a reference to the function
(address)
Pass By Value:
passes a copy of the value into the
function's stack frame.
-------------------------------------
lvalue = rvalue
(left value) = (right value)
(expression) = (expression)
address = binary number
lvalues: are often identifiers
rvalues: are often values
-------------------------------------
The heap is typically used for dynamic memory allocation, and can only be accessed with pointers.
-------------------------------------