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
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
Get step-by-step solutions from verified subject matter experts
