I am trying to figure out if all my words of the dictionary are uploaded in my declared node* hashtable[100]but when I am using gdb its just giving me the hexadecimal address of the nodes, be it a small dictionary or large. How do I further check all of these nodes through gdb as to what words are stored in these linked lists. attached is the pic of the output i am getting when I print hashtable in gdbenter image description here


Have you tried print hashtable[index]->word instead, where index is an int between 0 and 99?

Also, try p hashtable[index]->next->word and the like.

I'm on mobile right now, so I can't test with my own gdb until later, but if you're still having trouble later, I'll add more details this evening.

By the way, if this helps, be sure to accept my answer by clicking the green check mark. Remember: only you can prevent this from becoming a "zombie question"!

You must log in to answer this question.

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