内存的地址的一点思考
int n1;
int n2;
int n3;
printf("n1 address is %p\n",&n1);
printf("n2 address is %p\n",&n2);
printf("n3 address is %p\n",&n3);
n1 address is 0xbffdd468
n2 address is 0xbffdd464
n3 address is 0xbffdd460
定义了3个整形变量
地址分别是0xbffdd460、0xbffdd464、0xbffdd468
一个int变量占4个字节
当时我纳闷的是这个地址是bit还是byte
后面看到一篇文章:字节是最小的内存寻址单位
https://www.pianshen.com/article/2910219738/