#include<stdio.h>
int main()
{
int a = 128;
printf("%p %p\n", &a,);
char * xx = (char*)&a;
printf("%p\n", xx);
printf("0 -> %p --> %d\n", xx, *xx);
printf("0 -> %p --> %d\n", xx+1, *(xx+1));
printf("0 -> %p --> %d\n", xx+2, *(xx+2));
printf("0 -> %p --> %d\n", xx+3, *(xx+3));
}
为什么内存最低位输出的是 -128。
|
|