Question: Write a simple C++ program that creates an array of size and numeric data type of your choosing. Pass that array to these functions (that

Write a simple C++ program that creates an array of size and numeric data type of your choosing. Pass that array to these functions (that you create) by pointer: 1) ArrayData(): receives a pointer to the array and allows the user to enter data into the array. 2) outputArrayData(): receives a pointer to the array, and simply outputs the array elements. 3) sumArray(): receives a pointer to the array, and simply outputs the sum of the array elements.

Note that you must use pointer syntax, not square-bracket syntax when processing these arrays. So remember that this array element's reference: myArray[index] ...is equivalent to this: *(myArray + index)

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!