What are dangling pointers? How are dangling pointers different from memory leaks?
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 |
write a program to produce the following output; ABCDEFGFEDCBA ABCDEF FEDCBA ABCDE EDCBA ABCD DCBA ABC CBA AB BA A A
17 Answers ABC, College School Exams Tests,
What is the translation phases used in c language?
Stimulate calculator using Switch-case-default statement for two numbers
What are global variables and how do you declare them?
What do you mean by dynamic memory allocation in c? What functions are used?
Why do we use null pointer?
How are variables declared in c?
What are the 4 data types?
What happens if a header file is included twice?
Why do we need functions in c?
print a "hello" word without using printf n puts in c language
how many times of error occur in C