Difference between null pointer and dangling pointer?

Answer Posted / vadivel t

To Sourisengupta Question.

free() shall free the memory which is allocated dynamically.

But afrer the free() function being called,the pointer
which u r passing to free() as an argument, shall point to
the same base address, which is no more valid.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure data type in c?

562


What does the message "automatic aggregate intialization is an ansi feature" mean?

686


What does nil mean in c?

665


write a program fibonacci series and palindrome program in c

627


Explain how can I prevent another program from modifying part of a file that I am modifying?

630






How can a number be converted to a string?

589


Why is it that not all header files are declared in every C program?

671


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

808


Mention four important string handling functions in c languages .

617


What is a pointer and how it is initialized?

597


How does placing some code lines between the comment symbol help in debugging the code?

536


How the c program is executed?

624


Explain how can I make sure that my program is the only one accessing a file?

614


What is the difference between array and structure in c?

563


Why we use int main and void main?

533