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

Function inc

CPP/recursion/rec_direction.cpp:17–23  ·  view source on GitHub ↗

the code will go towards base case

Source from the content-addressed store, hash-verified

15
16//the code will go towards base case
17void inc(int n){
18 if(n==0)
19 return ;
20 dec(n-1);
21 cout<<n<<" ";
22
23}
24//jab bhi code recusive function ke baad likha ho then the code will from away from the base case
25
26

Callers 1

mainFunction · 0.85

Calls 1

decFunction · 0.85

Tested by

no test coverage detected