Release Run-Time Storage
The function free() releases (gives back) memory to the system. Memory should be released when it is no long used.
#include <stdio.h>
. . .
int *a;
. . .
a =
calloc(5, sizeof(int));
a[2] = . . .;
. . .
free(a);
Previous slide
Next slide
Back to first slide
View graphic version