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 is extern keyword in c?
Explain what is the benefit of using #define to declare a constant?
What are the different file extensions involved when programming in C?
Difference between linking and loading?
Explain how can I remove the trailing spaces from a string?
What is the modulus operator?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is omp_num_threads?
What is variable declaration and definition in c?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What are shell structures used for?
Explain what is the difference between a free-standing and a hosted environment?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What are types of functions?
Why can’t we compare structures?