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
Is c call by value?
What do you mean by invalid pointer arithmetic?
Why is c used in embedded systems?
If you know then define #pragma?
Linked lists -- can you tell me how to check whether a linked list is circular?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Explain logical errors? Compare with syntax errors.
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is c programing language?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
List the different types of c tokens?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Are pointers really faster than arrays?
What are the rules for the identifier?
What are runtime error?