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
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
what is the height of tree if leaf node is at level 3. please explain
What is a good way to implement complex numbers in c?
When should a far pointer be used?
What are the advantages and disadvantages of pointers?
How do I convert a string to all upper or lower case?
What is floating point constants?
How do you determine the length of a string value that was stored in a variable?
Explain what is the advantage of a random access file?
When is a “switch” statement preferable over an “if” statement?
What is uint8 in c?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is the condition that is applied with ?: Operator?
What functions are used in dynamic memory allocation in c?
What is calloc() function?