Resizing Memory Using Realloc
realloc() We may need to resize the dynamically allocated memory in our C-program. Resizing can be done to increase as well as decrease the size of dynamically added memory. realloc is the system call that enables us to do the same. Let us begin with understanding the syntax for the same void* realloc (void* ptr,…
Continue Reading