Question: Please write in C++ 5. (4 pts) Write a function that takes as an input parameter an array of 20 ints, and an int parameter
Please write in C++
5. (4 pts) Write a function that takes as an input parameter an array of 20 ints, and an int parameter representing the length of the array (so youre passing 20 as a parameter into the function). The function should fill the array with random numbers between 0 and 100 (not including 100). The function returns nothing.
6. (4 pts) Write a function that takes as input parameters an array and an integer (call by value) and prints out this array (the integer reflects the size of the array). Print out the array as a single line, with commas between each number, and when the array is finished being printed, print an endl; so that we flush the buffer and move to a new line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
