Help with pointers
Posted on 2003-10-22
If there is a Dummy head in the list. I need to insert a new node pointed by NewPtr at the beginning of the list.
From what I read, I understood that dummy head is used to get exclude the special cases.
So the solution:
is not applicable, coz that is what is being used for the special case.
What would be a similar code segment for the list that uses dummy head.
I have a solution, but i am not sure if it is right:
Can you please advise, and if possible explain.