Answer: Those pointers which pointing to a memory block which is no more exist in the memory. for example Suppose two pointers are pointing to the same memory location and memory is freed using firstpointer variable but second pointer is still pointing to the same memory location. the second pointer is a dangling pointer.
Those pointers which pointing to a memory block which is no more exist in the memory. for example Suppose two pointers are pointing to the same memory location and memory is freed using firstpointer variable but second pointer is still pointing to the same memory location. the second pointer is a dangling pointer. 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.
Answer should be complete in itself.
Related Questions
View Answer
What are the differences between malloc() and calloc()?
What are macros? what are its advantages and disadvantages?