C program to create array with reverse elements of one dimensional array
Given an array with N integer elements, and we have to reverse all elements of given array using C program.
Example:
Input array elements:
10, 10, 20, 30, 10
Output:
Reversed array is:
10, 30, 20, 10, 10
Program to create an array with reverse elements of another array in C
Logic:
Consider the given code snippets:
Here, in this loop:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer