Question: C++ Programming C++ programming C++ Programming C++ programming Pointer Arithmetic Write a function that passes an array address to a function as a pointer. Using
C++ Programming
C++ programming
C++ Programming
C++ programming
Pointer Arithmetic Write a function that passes an array address to a function as a pointer. Using pointer arithmetic, the function determines the average, high, and low value of the array. Your function should have this header: void pointerArithmetic(int "array, int size, double &average, int &high, int &low) Parameter size is the number of elements in array. You may not use the subscript notation inside your function-instead, use pointer arithmetic. Write a main program to demonstrate this function. Challenge If you finish early, modify your function and main program to work with an array of objects Create a class Student with a member variable score. Your function should now have a parameter which points to an array of student objects. Within your function, determine average, high, and low scores over all students, using pointer arithmetic
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
