Originally Posted by
c_weed
What happened to addresses 0xC001, 0xC002, 0xC003 for example? How do you know the memory content is 4 bytes in length? How is that possible that a memory address can be mapped to something other than 1 byte?
Gee, I dunno, because the value being stored is 4 bytes long?
Code:
printf("%d", sizeof(int));
What do you get back?
Unless you are on some seriously old and outdated compiler, it will print 4 ... so in order to store 1 int you need 4 bytes of memory... thus one variable every 4 bytes... just like your image.