Skip to main content

New answers tagged

0 votes

Programme fails on freeing memory - Pset 5 (speller)

Memory is dynamically allocated to new nodes, which are incorporated into the table by a pointer at table[hash(word)], or if there is a collision, by a pointer at the end (or prepending to the ...
Luke Sharkey's user avatar
0 votes

Programme fails on freeing memory - Pset 5 (speller)

You can't free the memory until you are done using it. You shouldn't be freeing the memory for the nodes in the load function. You free them in the unload function. If you free them during load then ...
UpAndAdam's user avatar
  • 1,311

Top 50 recent answers are included