Question: C++ 1) Create an int array of size 10 called numbers. Use a loop and populate the arrays with numbers using cin or random numbers.
C++ 1) Create an int array of size 10 called numbers. Use a loop and populate the arrays with numbers using cin or random numbers. Next use a loop to display the array values, but this time use pointer arithmetic. 2) create a function printArray to display the values from above (basically move your code to display the values to a funtion). printArray should accept the array and its size as parameters. Pass the array size as a pointer to an int.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
