Question: 2. What is dynamic memory? 3. What is a memory leak, and how do you prevent them? 4. Write a function called get_array() that will
2. What is dynamic memory? 3. What is a memory leak, and how do you prevent them? 4. Write a function called "get_array()" that will take an int that represents the size of the array, then return an array of integers on the heap of that size, consider what return type this function has: \[ \text { get_array (int size) } 1 \]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
