Random Access Memory

Notes: (1) Numeric addresses are faked. (2) Unknown values a shown as a question mark(?). (3) Each column shows the successive values of the variable or address shown at the top of the column. But the cout column shows the lines appended to the output.

After p = new int;
Variables & Addresses cout p 1234
Typesostream&int*int
Values   1234 ?

The address 1234 stands for an unknown address that is part of the heap memory in the running program.