Function Level Hierarchy
I have another hierarchy question, but this time it is a little different.
I am working on a program with dynamic memory allocation and so forth, and from my previous post, (Two Dimensional Array of Characters), I am working with some functions that deal with generating a two-dimensional array of letters and generating an array of structure of words.
I want to use other functions in this program, such as GenerateSearchResults (...) and RecursiveSearchList (...)
I want to design my main in the following way to be a "skeleton" of the program:
However, it seems once I call GenerateLetters and GenerateWords, I have no way to access the two-dimensional array of letters or the array of structures, which are both needed for the other two functions in my main.
How can I eliminate this hierarchy problem.