<<< C, C++, and Java, cont.     Index     Curly braces >>>

5. Memory as numbered boxes

  • Programmer's view of computer memory is extremely simplified...

    • ...a long sequence of "placeholders" or "boxes" representing individual memory locations.

  • Each memory location can be accessed at the same speed, hence the name RAM,
    "Random Access Memory".

  • In order to allow the processor to uniquely specify each location, the slots are sequentially numbered starting at 0.

  • The number corresponding to a given slot is called its address.

  • Value 7 stored at location 12

  • Value 7 stored at location 12


<<< C, C++, and Java, cont.     Index     Curly braces >>>