Delete a Linked List in C

Write a function that takes a linked list, deallocates all of its memory and sets its head pointer to NULL (the empty list).

Static Linked List in C

We have discussed about the linked list data structure which is dynamic in nature (the memory is allocated during the run time). Now the question that might be on a few peoples minds is – can a linked link be implemented statically as well? This post tries to answer this question.