Question: what is the difference between associative and dynamic array?
Answer: A dynamic array gets created with a variable size and stays that size in a contiguous block of memory. Its elements are indexed starting with integer 0. ... The benefit of an associative array is since each element gets allocated individually, you don't need to allocate a contiguous set of array elements.