阅读背景:

例如,在C中定义变量时,存储该变量的内存地址在哪里?

来源:互联网 

If I define a variable in C (i.e. unsigned short int n = 5), that value is stored somewhere in the user's RAM in binary (in this case it would look something like 0000 0000 0000 0101). The place in which that value is stored has an address that is also in binary. (i.e. the value 5 could be stored at say 0010 which would mean it uses both 0010 and 0011 in ram since it uses 2 bytes). The name of the variable n represents the memory address where that value is stored. Where is that memory address stored? Wouldn't that take up even more ram? If it did then wouldn't that address have to have an address as well? If I define a variable in C (i.e. unsigned shor




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: