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

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!