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 void reverse(int *, int*); int main() { int arr[50], num, *p; printf("Enter number of elements: "); scanf("%d",&num); printf("Enter the elements of an array: "); for(int i=0;i

} /*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

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!