Don't like ads? PRO users don't see any ads ;-)
Guest

NOTES4CPP

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 0.83 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Notes for Book:
  2. -------------------------------------
  3. (*) Access what my pointer points to.
  4. (*) Declaration of a pointer.
  5.  
  6. 4 Attributes of a Variable:
  7.      - Address
  8.      - Value
  9.      - Length (bytes)
  10.      - Container
  11. -------------------------------------
  12. Pass By Reference:
  13.   passes a reference to the function
  14.                      (address)
  15.  
  16. Pass By Value:
  17.   passes a copy of the value into the   
  18.   function's stack frame.
  19. -------------------------------------
  20. lvalue = rvalue
  21. (left value) = (right value)
  22. (expression) = (expression)
  23. address = binary number
  24.  
  25. lvalues: are often identifiers
  26. rvalues: are often values
  27. -------------------------------------
  28. The heap is typically used for dynamic memory allocation, and can only be accessed with pointers.
  29. -------------------------------------