Question: DO IN C++ Write a function that will generate an array of random numbers. It needs to: Take 3 integers as parameters -The first is

DO IN C++

Write a function that will generate an array of random numbers. It needs to:

Take 3 integers as parameters

-The first is the minimum value

-the second is the maximum value

-the third is the size of the new array

-create a dynamically allocated array of the correct size

-generate a random number (between min and max) for each element in the array

-return a pointer to the array

Create a main() function that tests the above function and displays the values in the random array.

Do not use array notation inside the function. Use pointer notation only.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!