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

What is the effect of deleting a pointer from a linked list???

My question is that what is the effect if I delete a pointer in a linked list by mistake???

What problems will arise and how will I come to know that is a missing pointer that is causing the trouble?

hamza123
Newbie Poster
2 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

Is this a question from your assignment??? Anyway, deleting a pointer(node) from a linked list without reconnecting it would cause you to lose all of the data which connect after the deleted node. As a result, memory leak would happen. There is a way to know that by traversing through the list. If you get an error (the next node is not null or end with null), you found the missing node.

Taywin
Posting Virtuoso
1,727 posts since Apr 2010
Reputation Points: 229
Solved Threads: 239
 

yeah I am trying to find out an answer for my assignment at the university.....Thnx for the reply.

I had the samething in mind as you answered.

hamza123
Newbie Poster
2 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: