Difference between null pointer and dangling pointer?

Answer Posted / vrushali

free should be able to free as it maintains a table from
where it can start freeing the memory. It is OS related issue.

There is no way in C where we can ensure that the particular
memory is freed a even after free we can access the variable
for some time. In Java, we have a memory deallocator.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what will the preprocessor do for a program?

591


What is the hardest programming language?

659


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

651


What are the types of pointers in c?

524


What language is windows 1.0 written?

563






Give the rules for variable declaration?

665


Explain about block scope in c?

653


What are static variables in c?

616


Difference between constant pointer and pointer to a constant.

603


How many bytes is a struct in c?

717


Is array name a pointer?

595


What is the heap in c?

635


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

643


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

589


Why is c called a structured programming language?

664