What is "heap"

The heap is the appropriate memory location to allocate many large objects, as this section of the program is much larger than the stack, and its size is limited only by the virtual memory available on your machine. Objects allocated in Heap are all those allocated using new or malloc() (dynamically allocated objects). Since the position in which these objects will be during the execution of the program is unknown at compile time, the only way to access them is via Pointeros should remember to control the misalignment of these objects as they are not destroyed automatically.