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;
}
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers