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

QuestionsCategory: C ProgrammingHow will you free the memory allocated by the following program?
Pruthvi Kalki asked 4 weeks ago

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

#include<stdio.h>
#include<stdlib.h>
#define MAXROW 3
#define MAXCOL 4

int main()
{
    int **p, i, j;
    p = (int **) malloc(MAXROW * sizeof(int*));
    return 0;
}
Please follow and like us:
1 Answers
AdminAdmin answered 4 weeks ago

free(p);

Please follow and like us: