What is CrazyEngico.com (CE)?

CrazyEngico (CE) is a one-stop solution for interview questions and answers, domain knowledge, e-learning, tutorials, articles and many more learning material.
e-learning - Intelligent e-learning tutorials and articles
Domain Knowledge Learn about various business domains/verticals such as Banking, Financial, Insurance, Healthcare and many more...
Interview Questions and Answers - Post your questions and answers. 1000+ database of ready questions and answers available to prepare for an interview.
Tutorials - 300+ video tutorials from beginner to expert level.
Articles - 300+ technical articles to understand concepts.
Forum - A technical forum to post your queries/responses.

Search Questions

Interview Questions/Answers

Ads
Question
Interview Q & A >> C++ >> What is a dangling pointer?

<< Previous Question Navigator Next >>

0        0
What is a dangling pointer? (Views: 946)


Answers


0        0

dangling pointer : Dangling pointers in computer programming are pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory.memory leak:A memory leak in computer science is a particular type of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed.ex:void f(void){     void* s;     s = malloc(50); /* get memory */     return;}//control comes out w/o freeing the memory....
 

Submitted By: Updesh Kanaujiya | Created On: 3/15/2012 6:37:00 AM

0        0

dangling pointer : Dangling pointers in computer programming are pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory.memory leak:A memory leak in computer science is a particular type of unintentional memory consumption by a computer program where the program fails to release memory when no longer needed.ex:void f(void){     void* s;     s = malloc(50); /* get memory */     return;}//control comes out w/o freeing the memory....
 

Submitted By: Updesh Kanaujiya | Created On: 3/15/2012 6:37:02 AM


Post your Answer
Your answer will be first reviewed by our administrator before it appears on the site.

Your Answer:


 
Display Name:





By clicking on Submit button you agree to the Terms of Service agreement.




Copyright © 2018 CrazyEngico.com. All rights reserved.
CrazyEngico.com is not responsible for the content and CrazyEngico.com does not evaluate or guarantee the accuracy of any CrazyEngico.com content.
Please read our terms of service agreement before using this site.

feedback