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

Function main

CPP/recursion/rev_array.cpp:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

rev_arrFunction · 0.85

Tested by

no test coverage detected