Question: Need the answer within 30 minutes please ( C program) 4) Write a program to reverse the elements of an array with the help of
Need the answer within 30 minutes please ( C program)
4) Write a program to reverse the elements of an array with the help of another array which will store the reverse array. Consider the function void rev (int*, int*, int size); The function takes the two arrays as arguments, uses pointer to reverses the elements of a given array and store it in another array. Display the two arrays from main (); Enter array elements: 10 20 30 40 50 60 70 80 90 100 Output: Input array elements (array 1): 10 20 30 40 50 60 70 80 90 100 Reversed array elements(array2): 100 90 80 70 60 50 40 30 20 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
