Computer Science, asked by msslakshmi8383, 1 year ago

The given below program allocates the memory, what function will you use to free the allocated memory?



#include



#include



#define maxrow 4



# define maxcol 5



int main ()



{



int **p, i, j







p = (int **) malloc(maxrow * sizeof(int*));



return 0;



}

Answers

Answered by deepu51175
3
When the memory is no longer needed, the pointer is passed to "free" which deallocates the memory so that it can be used for other purposes.
Hope it helps !!!
Similar questions