Questions tagged [malloc]
2
questions
1
vote
2
answers
943
views
declaring char array vs malloc
I was watching the week 5 lecture and David said that a chunk of memory can be allocated two ways:
using malloc();
declaring an array of a certain size (char buffer[10]).
Is there really any ...
0
votes
2
answers
325
views
Pset5 - Problem with hash table load(), malloc, and segmentation-fault
I am having problem with the load function. When I run:
valgrind --leak-check=full ./speller texts/austinpowers.txt
it gives me the following report (I am using the small dictionary to test my code) ...