Adress : Data
0000 xxxxxxxx
0001 xxxxxxxx
0002 xxxxxxxx
0003 xxxxxxxx
Suppose this is my own ram which has only 1-byte for each address. if I declare an integer variable which requires 2-byte, it will allocate the memory
from adress 0000-0001 , but I wonder for the computer that we use in nowadays, how many bits can be stored in each address in a ram?
Does it depend on OS-system? like 32-bits or 64-bits or depend on my ram like what kind of ram that I used like DDR4 DDR3 (I don't really know what that means) and I wonder how is the data in the variable represented.
suppose I declare variables x = 4
then does it go like this
Adress : 0000 0001
data: 00000000 00000100
or
Adress : 0001 0000
data: 00000000 00000100
0000 xxxxxxxx
0001 xxxxxxxx
0002 xxxxxxxx
0003 xxxxxxxx
Suppose this is my own ram which has only 1-byte for each address. if I declare an integer variable which requires 2-byte, it will allocate the memory
from adress 0000-0001 , but I wonder for the computer that we use in nowadays, how many bits can be stored in each address in a ram?
Does it depend on OS-system? like 32-bits or 64-bits or depend on my ram like what kind of ram that I used like DDR4 DDR3 (I don't really know what that means) and I wonder how is the data in the variable represented.
suppose I declare variables x = 4
then does it go like this
Adress : 0000 0001
data: 00000000 00000100
or
Adress : 0001 0000
data: 00000000 00000100
Last edited: