void* realloc (void* ptr, size_t size); Reallocate memory block Changes the size of the memory block pointed to by ptr.The function may move the memory block to a new location (whose address is returned by the function). The content of the memory blo
一份代码可以知道具体方式和原理: int main() { int stack_a; int stack_b; static int static_c; static int static_d; int *heap_e; int *heap_f; heap_e = (int *)malloc(10); heap_f = (int *)malloc(10); printf("The a address is %p\n",&stack_a); printf("The b