What is a dangling pointer?
Page 1 of 1
What is a dangling pointer?
Answer:
A dangling pointer arises when you use the address of an object after its lifetime is over.
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.
Database interview questions
Click here More information available
A dangling pointer arises when you use the address of an object after its lifetime is over.
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.
Database interview questions
Click here More information available
Similar topics
» What is an opaque pointer?
» What is a smart pointer?
» If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
» What is a smart pointer?
» If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|