You can't do it that way. If you pass the delete function the node that you want to delete, you need a way to update the next pointer in the node before it. Since you don't have a doubly linked list, you can't determine the node before.I do not understand how to do it in delete function post number #16.
i have a Temp pointer. I want to delete second node in code i have to find the node i want to delete.
With the way you seem to want to delete, you have to start at the beginning and walk the list (remembering the address of the node you last visited) and update the next pointer of the previous node when you find the one you want to delete.
You'll have a memory leak if you don't free the space allocated to the nodes you delete.