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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -