What are dangling pointers? How are dangling pointers different from memory leaks?
Answer Posted / hrpynux@gmail.com
So dangling pointer is nothing but a pointer which is pointing a dynamic variable whose scope is already finished. Memory leak: When there is a memory area in a heap but no variable in the stack pointing to that memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are pointers? What are stacks and queues?
What is the explanation for modular programming?
What are pragmas and what are they good for?
List some of the dynamic data structures in C?
What is difference between union All statement and Union?
What is structure in c explain with example?
Is there sort function in c?
Can you explain the four storage classes in C?
What is array in C
What is the description for syntax errors?
What is an lvalue in c?
What is extern keyword in c?
Do you know null pointer?
State two uses of pointers in C?
What are header files? What are their uses?