Question: This is a c++ program. Would need some assistance with the homework. thankyou all. 3. Write a function called get array() that will ask the
This is a c++ program. Would need some assistance with the homework. thankyou all.

3. Write a function called "get array()" that will ask the user for a size, then return an array of integers on the heap of that size, consider what type this function will be: get_array (int *n) 4. What are the issues with making the array on the stack in the function above? Looking at the function we made in question 3, could we have made this function a void function? What are your two options in C++? Write both function calls and prototypes? 5. Below is a loop that will implement our function from problem 3. How does this 2D array differ from 2D arrays we have seen in the past? Draw the "shape" of the 2D array as it appears in memory! 6. int **my2DArray -new int [10; for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
