0

When i run the following program, for some reason the code gives me a segmentation fault (core dumped).
typedef struct WordNodeType
{
char word[MAX_WORD_CHARS];
struct WordNodeType *next;
} WordNode;
blah blah here
WordNode* AddtoList(WordNode* Top, char result[MAX_WORD_CHARS])
{
...