What am I doing wrong ???
It is giving me an error of segmentation fault .
I don't know what memory i'm accessing ??

```cpp
#include <iostream>
using namespace std;

int main() {
    int t;
    int n;
    int arr[n];

    cin>>t;
    cin>>n;

    // taking array elements from user
    for(int i=0; i<n;i++)
    {
        cin>>arr[i];
    }

     // reverse of the array
     for(int i=n-1; i>=0;i--)
    {
        cout<<arr[i];
    }
    //code
    return 0;
} 

```