Wednesday, 18 September 2013

dynamic memory allocation and memory leak

dynamic memory allocation and memory leak

Does free releases the memory in the below, and how can I verify that
memory is released ?
int *p = malloc(sizeof(int));
int *q = p;
free(q);
How to access MCB structure for a dynamically allocated memory ?

No comments:

Post a Comment