Size of dynamically allocated memory can be changed by using realloc(). As per the C99 standard: filter_none edit close play_arrow link brightness_4 code void *realloc(void… Read More »
Pre-requisite: Dynamic Memory Allocation in C using malloc(), calloc(), free() and realloc() The name malloc and calloc() are library functions that allocate memory dynamically. It… Read More »
Memory leak occurs when programmers create a memory in heap and forget to delete it.
Memory leaks are particularly serious issues for programs like daemons and servers which by definition never terminate.