Heads Up!
If this is your first time thinking about memory, I recommend jumping down to the very bottom of how computer memory works. Here is a pretty decent basic description.
Then I recommend learning more about memory addresses. This video lecture series offers a thorough introduction with C++
code examples.