Question: Write a c program to prompt user to input the variables into the array. Then, it reverse elements and point out(like, swapping of first element

Write a c program to prompt user to input the variables into the array. Then, it reverse elements and point out(like, swapping of first element with last, second element with second last and so on) Your expected output are shown photo.
Exercise 5: la3_cx5.c (3%) Write a program, save as la3 ex5.c, to prompt user to input the variables into the array. Then, it reverse elements and print out (like, swapping of first element with last, second element with second last and so on) Your expected output are as follows Enter elements Enter arr[e] 1 Enter arr 1] 2 Enter arr[2] 3 Enter arr 3] 4 Enter arr[4] 5 The array after swap is.. arr[e] 5 arr[1] 4 arr[2] 3 arr[3] 2 arr[4] 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
