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

What is a memory leak? How to avoid it?

Answer Posted / hrpynux@gmail.com

Memory leak occurs when programmers create a memory in heap and forget to delete it. ... To avoid memory leaks, memory allocated on heap should always be freed when no longer needed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how are portions of a program disabled in demo versions?

1122


Can you return null in c?

1168


What is the difference between ++a and a++?

1213


What is p in text message?

988


Which is better between malloc and calloc?

1204


How to set file pointer to beginning c?

1203


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3371


What is the difference between int main and void main in c?

1179


Explain continue keyword in c

1021


Why is struct padding needed?

1087


Write a factorial program using C.

1082


Explain can static variables be declared in a header file?

1153


Is it possible to pass an entire structure to functions?

998


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8050


Why we use int main and void main?

1078