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
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 !!!
Hope it helps !!!
Similar questions
Math,
7 months ago
Physics,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Economy,
1 year ago