Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C
How will you free the memory allocated by the following program?
# include
#i nclude < stdio.h >
#define MAXROW 3
#define MAXCOL 4
int main()
{
int ** p, i, j;
p = (int **)malloc (MAXROW* size of (int*));
return 0:
}
1
memfree (int p);
2
dealloc (p);
3
malloc (p, 0);
4
free (p):