How big is a memory address?


#1

I am delighted to finally understand why pointers are important. They have been a real mystery until this chapter. Just one quick question. When you refer to a memory address, how much memory real-estate are we talking about? Does it reference an entire quadrant of memory or just point to a single bit/byte?

Thanks.


#2

The address is usually thought of as addressing the first byte of something. If you increased the address by one, you would be moving it to point to the next byte in memory. (In reality, there are some tricks that systems sometimes use to address more memory, but this is conceptually what you need.)


#3

Aaron,

This is good enough for now. Given the difference in memory requirements for different sized objects, I wouldn’t expect that a single hex number would be able to hold it all. I really appreciate this chapter though because until now, I have really struggle with the whole concept of pointers. Thanks again for the great book.