CMSC 3305 Memory Management in C Local variables live on the stack –Allocated at function invocation time –Deallocated when function returns –Storage space reused after function returns Space on the heap allocated with malloc() –Must be explicitly freed with free() –This is called explicit or manual memory management Deletions must be done by the programmer
{}