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 'bus error'?
What is volatile variable in c with example?
What are the differences between Structures and Arrays?
What are the 4 data types?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
if p is a string contained in a string?
Explain threaded binary trees?
Explain the use of function toupper() with and example code?
What is a void * in c?
Why dont c comments nest?
What is a node in c?
Explain how do you list files in a directory?
How can I change their mode to binary?
What is the return type of sizeof?
Explain the use of #pragma exit?