Could anyone tell me the difference between memory allocation scheme used by malloc and realloc. I would like to know how realloc reasssigns the memory to a pointer variable. In other words, what will happen if the availabe memory is not contiguous?
What will be the situation with malloc if the available memory is not contiguous?
Finally, is the memory allocated by calloc is contiguous always?
Please answer to this.
Thanks in advance.