Chapter 17: Problem 12
Write a function ListNode *removeFirst(ListNode *ptr) that is passed a linked list as parameter, and returns the tail of the list: that is, it removes the first node and returns what is left. The function should deal locate the storage of the removed node. The function returns NULL if the list passed to it is empty.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.