4

I have written the code for the load function that forms a hash table of the words in the dictionary , how to write the code for check as the hash table which I have made is local to the load function ?

3

You should make the hashtable a global so it is accessible from both functions.

2
  • thank you one more thing are all words in the dictionary in lower case?
    – pranav
    Sep 30 '14 at 22:06
  • Yes, you can assume that the dictionary words are all lower case.
    – curiouskiwi
    Sep 30 '14 at 22:07
0

This guide covers global variables. http://www.codingunit.com/c-tutorial-functions-and-global-local-variables

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .