It is not giving correct output, Please tell Why
Please only tell the error
Why this is not working
Sir, What’s the issue in using that as both have same meanning and both will do the same work.
@cbcao263
They are not the same. i++ increments the value of i but before doing that , the current value of i is passed to the recursive call.
Using i+1 passes the increment value of i to the recursive call.