Question: 1-3 In your main function in main-1-3.cpp, define and initialize a one-dimensional int array. Define (but do not initialize) another one-dimensional int array of the
1-3 In your main function in main-1-3.cpp, define and initialize a one-dimensional int array. Define (but do not initialize) another one-dimensional int array of the same size as the first one. Write a function that copies the values of the first array into the second, this time using pointers. Signature: void cpyia(int old arraytl.int new arrayll.int length) Note: before accessing an array element, the pointer must be changed to point to the element. You may not use the & operator or notation in your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
