Answer: Dangling pointer leads the memory leak problems. The following circumstances are memory leak ( dangling pointers ) not for good programming practice try to avoid
1) Try to avoid the empty object pointer creation 2) Memory allocation without de allocation. 3) With out memory allocation But de allocation. 4) Memory allocation De allocation But again unnecessary de allocation.
Question:
What is the dangling pointer in c++ Answer:
Dangling pointer leads the memory leak problems. The following circumstances are memory leak ( dangling pointers ) not for good programming practice try to avoid
1) Try to avoid the empty object pointer creation 2) Memory allocation without de allocation. 3) With out memory allocation But de allocation. 4) Memory allocation De allocation But again unnecessary de allocation. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.