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

Lists the benefits of c programming language?

1086


Can a pointer be volatile in c?

959


What are the uses of null pointers?

1059


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

6754


Can a pointer be static?

1038


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1063


Which is better oop or procedural?

1015


What is the difference between arrays and pointers?

1089


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1070


What is data structure in c language?

1075


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

1047


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1554


What is c++ used for today?

1074


What are the types of bitwise operator?

1071


In C programming, what command or code can be used to determine if a number of odd or even?

1016