|
THanks...
The reason I did 2 print statements was to see where the error was. The thought about head being dead did not occur to me.
But I have a question now; how will I check if the array-node at List[bucket] is empty.
I tried to use a condition with if List[bucket]->next == null
Its compiling fine. But I am getting a segmentation fault.
Please help again.
Thanks again.
|