Posted On: Feb 22, 2018
Memory leak is a condition when a programmer who creates a memory in the heap forgets to delete it. It can be avoided by using the following coding:
/* Function without memory leak */ #include < stdlib.h > void f() { int *ptr = (int *) malloc(sizeof(int)); /* Do some work */ free(ptr); return; }
Never Miss an Articles from us.
Appcelerator is a mobile development stage specially designed for big enterprises..
Appcelerator is a code interpreter. A developer firstly writes code using the conventional Javascript and then compiles it using an application..
Appcelerator has the capability to develop a native application using simple HTML codes within an application that gives it an edge over other mobile application developers..