Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

LO14.2 Discuss how game theory relates to oligopoly.

Answered: 1 week ago