Chain hashing node

sir why do we make a node generic
like: node *next??
because there is no purpose to make it generic because the pointer points to the next node not to the data inside the node!!!
please explain me this?

Hello @mzk1994 you wehave to make it node* because of we have to store the address of the next node as well as the data value.
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.