MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/recursion/reverse_Arr.cpp:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13}
14int main(){
15 cin.tie(0)->sync_with_stdio(0);
16 int n;
17 cin>>n;
18 int arr[n];
19 for (int i = 0; i < n ; ++i)
20 {
21 cin>>arr[i];
22
23 }
24 reverse(arr,0,n-1);
25 for (int i = 0; i < n; ++i)
26 {
27 cout<<arr[i]<<" ";
28 }
29 return 0;
30}

Callers

nothing calls this directly

Calls 1

reverseFunction · 0.70

Tested by

no test coverage detected