C standard library function – realloc()
Realloc stand for Reallocation. At the time of memory allocation using calloc() or malloc(), it may be possible memory is excess or insufficient. So for that reason we need to reallocate memory at the run time. realloc() is used to dynamically reallocate those memory without losing the data.