Consider the following code:
int *p;
p = malloc(1);//p can point to 1 byte memory area
Why can p
point to many memory areas like below?
printf("%p %p %p %p %p",p,p+1,p+2,p+3,p+4);
转载于:https://stackoverflow.com/questions/53147851/pointer-can-point-to-memory-are-that-is-not-allocated