c++ - What is the difference between Dynamic Array and Dynamically allocated array? -
according wikipedia page on dynamic array, they're not same thing. wiki page. how memory allocation in both array work, need keep in mind while using either of them , 1 prefer. p.s. : i'm new programming
a dynamic array similar array it's size dynamic , grab more memory when full , add new element it. can created on stack or on heap.
a dynamically allocated array array created on heap.
Comments
Post a Comment