Quote:
When to use the free() method in C. Below I have stated a Linkedlist , the program is fine evn without releasing the memory here ? What is happening here ?
When the process exits the OS automatically releases all the memory the process allocated.
Quote:
When should I use the free() method or release the memory from the heap ?
When you no longer need it.