📚 Question Bank Q14 — Programming and Data Structure
Tags
Programming and Data Structure
Q14. Marks: +2.0 UGC NET Paper 2: Computer Science17th June 2023

How will you free the memory allocated by the following program?

# include <stdio.h>

#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): ✓ Correct
📄 All “Programming and Data Structure” questions across papers
🏷 Change Tag for this Question