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
Explain what are the standard predefined macros?
How do I use void main?
What is graph in c?
How can I manipulate strings of multibyte characters?
What is a class c rental property?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
number of times a digit is present in a number
what are the advantages of a macro over a function?
When is a null pointer used?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Is void a keyword in c?
Explain what are the __date__ and __time__ preprocessor commands?
swap 2 numbers without using third variable?
How to define structures? ·
What is a union?