Lecture overview -- Keyboard shortcut: 'u'  Previous page: C Program organization -- Keyboard shortcut: 'p'  Next page: The standard library -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    From C to C++ - slide 25 : 29

Memory Allocation

Two functions for allocation of memory from the heap

A function for deallocation of the memory

From <stdlib.h>

In C++ the new and delete functions are used instead of malloc, calloc and free
Go to exercise
Dynamic allocation of persons and addresses