被闺蜜的男票死缠烂打,我也是醉了!!# Love - 情爱幽幽
d*f
1 楼
int *pInt = (int*)malloc(100*sizeof(int));
pInt++;
free(pInt);
Except mem leaking, is there any other problem ?
My suspicion is free() will mark the out of boundary mem location. So the
behavior will be undefined.
pInt++;
free(pInt);
Except mem leaking, is there any other problem ?
My suspicion is free() will mark the out of boundary mem location. So the
behavior will be undefined.