Question: C++ Write a function named zeropadshift () that takes its arguments the following: an array of integer values. an integer o the array size. an

C++
Write a function named zeropadshift () that takes its arguments the following: an array of integer values. an integer o the array size. an integer distance that tells how many cells to shift by. Distance > 0, shift left, pad zeros in the end of the array. Distance = 0, no shift. For example: if the array passes to the function looks like the following: If distance = 2, the array will be Write a main () function to call the zeropadshift () function and display the array before and after shift in main ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
