Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between null pointer and dangling pointer?

Answer Posted / vadivel t

Minor correction in my ans #4...

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(ie., address
is valid but no more in the allocated memory pool. It will
be added in the free memory pool).

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program in c language to print your bio-data on the screen by using functions.

6790


When the macros gets expanded?

1434


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2649


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1070


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1263


Explain what is page thrashing?

1105


How does normalization of huge pointer works?

1179


Write a progarm to find the length of string using switch case?

2070


Differentiate fundamental data types and derived data types in C.

1036


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1730


Where in memory are my variables stored?

1189


Is it acceptable to declare/define a variable in a c header?

1128


Give differences between - new and malloc() , delete and free() ?

1102


What are dangling pointers in c?

1247


What are pointers? What are different types of pointers?

1152