CS174: Module 7: C++ Addresses And Pointers: Video 1

Developed by Professor Tralie and Professor Mongan.


Please watch the video below, and click the next button once you have finished

Notes

  • Memory in C++ is addressed as virtual memory, in which we can think of all the memory we're using laid out in a line.
  • The address of a variable x in virtual memory is accessed with the syntax &x
  • To print the address in memory, use the %p directive in printf