C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - General Questions (Q.No. 3)
3.
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;
}
memfree(int p);
dealloc(p);
malloc(p, 0);
free(p);
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
25 comments Page 3 of 3.

Amit said:   10 years ago
Please explain me how malloc works?

CHINNA DURAI.S said:   1 decade ago
Why we use C program in mostly?

Renuka said:   1 decade ago
When we can use dealloc().

Akash said:   8 years ago
How many bytes allocated ?
(1)

Siddu said:   1 decade ago
**p means?


Post your comments here:

Your comments will be displayed after verification.