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 value is returned to operating system after program execution?

1798


Add Two Numbers Without Using the Addition Operator

542


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1835


What is the difference between a free-standing and a hosted environment?

874


Can the sizeof operator be used to tell the size of an array passed to a function?

817


can we change the default calling convention in c if yes than how.........?

2262


What is the difference between local variable and global variable in c?

889


What is a keyword?

930


What are the __date__ and __time__ preprocessor commands?

755


How do we declare variables in c?

773


What are pointers in C? Give an example where to illustrate their significance.

945


Does * p ++ increment p or what it points to?

822


How do you construct an increment statement or decrement statement in C?

977


What is substring in c?

844


What do you mean by keywords in c?

867