free memory in C

C standard library offers the free() function, which takes a pointer as an argument and frees the memory the pointer refers to. This allows your system to reuse the memory for other software applications or other malloc() function calls Memory allocated by malloc() will continue to exist until program termination or until a programmer “frees” … Read more