Question: 1. Write a program that initializes an array, and prints out its elements using the pointer notation and pointer incrementing. You can initialize the array

1. Write a program that initializes an array, and prints out its elements using the pointer notation

and pointer incrementing. You can initialize the array as follows:

int arrN[10] =

{

4, 0, 453, 1029, 44, 67, 111, 887, 4003, 1002

}

;

2. Write a function called

ArraySumPointer(...)

that sums up all the elements of an array,

using the pointer notation. The function takes in two arguments: an integer array and the

size of the array. Have the function return as its result the sum of the elements in the array.

Note that when you pass an array to a function as in the line below, you are actually passing

the address of the array.

int ArraySum(int MyArray[], int size)

*This is question is for C++ coding using Visual Studio 2017

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!