Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started