0
Dynamic memory
i find dynamic memory very confusing. can somebody explain me what is dynamic memory, how to use it, why is it good to use dynamic memory?
2 ответов
0
do you mean dynamically allocate or deallocate memory on heap? in the simplest case, use pointer and new operator to allocate memory, delete operator to deallocate it. However , it has multiple potential issues, so it is better to know how to use smart pointers since C++11
0
thank for the answer. i mean allocate., after making the answer i already found the answer :D but thanks anyway