Перейти к содержимому

C++ Objects: Stack vs. Heap

pikuma

0:00 / 0:00

C++ Objects: Stack vs. Heap

10 179 просмотров · 5 лет назад
pikuma
26,7 тыс. подписчиков
10 179 просмотров · 5 лет назад
This video explains how we can create C++ objects in the Stack or in the Heap of our memory. As C++ programmers, we are responsible for memory management. When we create objects with C++, we can create them in the Heap or in the Stack. In this quick overview we'll understand what is the main difference between stack and heap, and how we can use C++ to allocate and deallocate resources for our objects using these two options. We will also review what "new" and "delete" are in C++ and what are their responsibilities. For comprehensive courses on computer science, programming, and mathematics, visit: http://www.Pikuma.com. Don't forget to subscribe to receive updates and news about new courses and tutorials:    / @pikuma   Have fun!