Question: Write a C Program that inputs an array of integers from the user along-with the length of array. The program then prints out the array
Write a C Program that inputs an array of integers from the user along-with the length of array. The program then prints out the array of integers in reverse. (You do not need to change (re-assign) the elements in the array, only print the array in reverse.) The program uses a function call with array passed as call by reference. Part of the Program has been given here. You need to complete the Program by writing the function.
#include } /*function to print the array of integers in reverse */ void reverse(int *arr, int *n) { // insert code }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
