Problem Statement
Write a C program to print the elements of a 1D array in reverse order. Read n, then the elements, and finally display them from the last index down to 0.
Example
Input:
5 1 2 3 4 5
Output:
5 4 3 2 1
DEMO-C-32 โข Programming in C
Write a C program to print the elements of a 1D array in reverse order. Read n, then the elements, and finally display them from the last index down to 0.
Input:
5 1 2 3 4 5
Output:
5 4 3 2 1
n followed by n integers
Reversed array
Submit runs every public testcase in this browser. Results and code never leave this device.
5 1 2 3 4 5
5 4 3 2 1
1 99
99
3 -1 0 1
1 0 -1
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question