the code will go towards base case
| 15 | |
| 16 | //the code will go towards base case |
| 17 | void 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 |