Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

What is Dangling pointer in dfs (data file structure)?

  Shared By: Isaac Evans    Date: Dec 09    Category: C++ Programming    Views: 1346

Answer:

If a node is being pointed by pointer p and q is pointer which points to p, so now if we free the pointer p, then the memory for pointer p is also freed. So now q no longer points to desired location. So such pointer q is called dangling pointer.

Share: 
 

Didn't find what you were looking for? Find more on What is Dangling pointer in dfs (data file structure)? Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: