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

What happens if header file is included twice?

1090


Why should I use standard library functions instead of writing my own?

1205


What is null pointer in c?

948


What is integer constants?

1015


What is scope and lifetime of a variable in c?

989


Why does everyone say not to use gets?

1027


What is a static variable in c?

1067


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

997


What is character set?

1118


What is the correct code to have following output in c using nested for loop?

1028


Difference between macros and inline functions? Can a function be forced as inline?

1202


What is the significance of an algorithm to C programming?

997


What are shell structures used for?

984


What is the best way of making my program efficient?

962


What is the symbol indicated the c-preprocessor?

1166