Explain dangling pointer.
Page 1 of 1
Explain dangling pointer.
When the address of an object is used after its lifetime is over, dangling pointer comes into existence. Some examples of such situations are: Returning the addresses of the automatic variables from a function or using the address of the memory block after it is freed.
Similar topics
» What is container class? Explain containers of pointer.
» Explain passing objects by reference, passing objects by value and passing objects by pointer.
» Pointer vs. reference.
» What is the type of “this” pointer? When does it get created?
» What is Stack? Explain its uses
» Explain passing objects by reference, passing objects by value and passing objects by pointer.
» Pointer vs. reference.
» What is the type of “this” pointer? When does it get created?
» What is Stack? Explain its uses
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|