Question: C++ code Create three functions that take as input an int pointer and const int. getnumbers Create 20 random integers from 15 to 30. Each

C++ code  C++ code Create three functions that take as input an int

Create three functions that take as input an int pointer and const int. getnumbers Create 20 random integers from 15 to 30. Each integer is stored in memory starting at the memory address passed into the function. howmany Starting at the memory addressed passed into the function. Count how many numbers in 20 consecutive memory addresses are 21 and over. This number should be return from the function. printarray Starting at the memory addressed passed into the function. Print out the integer values in 20 consecutive memory addresses The main program should create an integer array that can hold 20 values. Call each of the three function with the array address and size of the array as input parameters. Use pointer notation

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!