For the spell check program, we have to read the dictionary from a file into a data structure (e.g. linked list, hash table with linked lists, a try). However, we have to do this within the function bool load(). This function is outside of the main function however, so all the local variables (including any pointers or structs) created within load will disappear when load is done.
We can't alter the function headers, so we can't pass in or return any pointers, that might allow us to change data in ways that last beyond the end of the load() function.
Maybe we would use global variables, but this would require us to know ahead of time what variables/structs we want. However, when we go through the dictionary, we will want to be dynamically creating nodes.
How are we able to have variables (whether structs, pointers, ints, etc) that last beyond the implementation of load()?