w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Recursion Newbie & Objective-C newbie

Are you sure you want:

n=n-1;
count(n);

rather than this?

count(n-1);

The former will modify the value of n printed in your later printf, whereas the latter only modifies it in the recursive call.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.