Is this new_node -> next = hashtable[hash];
right? Assuming hashtable is an array of ints, and new_node-> next is a node pointer, then something's amiss.
Don't know if this is root of the problem, but it jumped off the page.
Is this new_node -> next = hashtable[hash];
right? Assuming hashtable is an array of ints, and new_node-> next is a node pointer, then something's amiss.
Don't know if this is root of the problem, but it jumped off the page.