realloc is used to reallocate the memory dynamically.
realloc
Suppose I have allocated 7 bytes using the malloc function and now I want to extend i
malloc
realloc will only succeed if it can return a contiguous ("sequential" in your words) block of memory. If no such block exists, it will return NULL.
NULL