![]() |
CITS2002 Systems Programming |
← prev | next → | ![]() |
![]() |
|||
Removing an item from the head our listRemoving items from the head of our list, is much easier.Of course, we again need to be careful about the case of the empty list:
We say that the caller now owns the storage required to hold the string - even though the caller did not initially allocate that storage.
It will be up to the caller to deallocate that memory when no longer required.
CITS2002 Systems Programming, Lecture 19, p11, 3rd October 2023.
|