Memory Allocation - Programming

Q1:

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;
}

A memfree(int p);

B dealloc(p);

C malloc(p, 0);

D free(p);

ANS:A - memfree(int p);

No answer description is available. Let's discuss.