String is a pointer to a null terminated array of characters

[malloc][][][]

char *array []

HEAP [LL head]

head points to the first node

[node 1 next item] node has an item and a pointer to the next one

[node 2 next item]

[node 3 next item]

NULL

in freeing, get a temp pointer to the next node, and then free the current node

Tutorial 12 | Home