I have a few questions about a piece of code that I have found on web, which is located at http://www.c.happycodings.com/Data_Structures/code9.html.
- Why is strarray defined as
**? Do we have to first
malloc()the array, and thenmalloc()each element of it?strarray = (struct node **)realloc(strarray, (count + 1) * sizeof(struct node *));strarray[count] = (struct node *)malloc(sizeof(struct node));
How to free() this array totally?
Thanks