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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started