Reverse an array

Take as input N, the size of array. Take N more inputs and store that in an array. Write a function that reverses the array. Print the values in reversed array.

1.It reads a number N.
2.Take Another N numbers as input and store them in an Array.
3.Reverse the elements in the Array.
4.Print the reversed Array.

Input Format
First line contains single integer n denoting the size of the array. Next line contains n space separated integers denoting the elements of the array.

Constraints
N cannot be Negative. Range of Numbers can be between -1000000000 to 1000000000.

Output Format
Print the elements of the reversed array in space separated manner.

Sample Input
5
0 4 6 8 9

Sample Output
9 8 6 4 0

solution link: https://ide.codingblocks.com/s/297667

only one test case is passing

hello @1799sanya
declare ur array as
long long a[n];
and then try

done that. still test cases are not passing

what is the problem name?

Arrays-Reverse an Array

declare array as int and then try.

logically ur code is correct.
there may be some technical issue.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.