954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

deleting a node with out traversing the linkedlist

hi
i m a new member. i have a question. so plz answer me if any one have the answer.

how can i delete a node without traversing the linkedlist. let's say want to delete the third node of the linkedlist without traversing it.

thank u

tarakant_sethy
Newbie Poster
17 posts since Oct 2006
Reputation Points: 10
Solved Threads: 1
 

not possible unless you already have a pointer to it because your program does not know the address of the node and because you also have to remove it from the linked list before deleting it.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You