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?

Answers were Sorted based on User's Feedback



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

Answer / shruti

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

Is This Answer Correct ?    20 Yes 0 No

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

Answer / guest

Yes you have to.

Is This Answer Correct ?    13 Yes 1 No

Post New Answer

More C Interview Questions

which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


How can you dynamically allocate memory in C?

2 Answers  


How can I find the day of the week given the date?

0 Answers  


difference between string and array?

6 Answers  


Do you know pointer in c?

0 Answers  


Apart from dennis ritchie who the other person who contributed in design of c language.

0 Answers  


What is the difference between getch() and getche()?

1 Answers   NSPL,


What is a sequential access file?

0 Answers  


What is logical error?

0 Answers  


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

0 Answers  


What is the relation between # and include<stdio.h>

5 Answers   HCL,


What is a Genralised LInked List?? Please give a detailed explation of it..

1 Answers  


Categories