What is a dangling pointer?

What is a dangling pointer?

Dangling pointer occurs when we try to use the address of an object after its lift time is finished. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed.

By:Umang
Date:2002-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher