You will also notice that strings and objects have quite a bit in common when it comes to memory allocation.Ĭ and C++ lack what is called a garbage collector.
The memory isnt dynamic and needs to be managed dynamically.
The reason that this seciton is being taught after everything above is mainly because memory management is more complex in c and c++ than it is in other languages.