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...

When you call malloc() to allocate memory for a local
pointer, do you have to explicitly free() it?

Answer Posted / shruti

yup.. we have to explicitly free it..
otherwise it results in "dangling pointer"..

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hash table in c?

1029


What is the code for 3 questions and answer check in VisualBasic.Net?

2169


What is the use of function in c?

1199


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1286


What is define directive?

1162


Why void main is used in c?

1062


What is the use of in c?

1034


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1139


Can you please explain the difference between syntax vs logical error?

1200


What is logical error?

1136


What are the uses of a pointer?

1158


What is the size of enum in c?

1122


What is the difference between ā€˜g’ and ā€œgā€ in C?

4018


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1225


Difference between pass by reference and pass by value?

1166