# Search results

1. ### Recursion in C

faust9, Anteros thank you very much. Your explanations cleared it up. Now by your explanations I think I understand recursion very well. Thanks again
2. ### Recursion in C

I don't really understand the code, that's why I sent this post. When a==1, the If statement is executed and function returns 1. When does it send a ? When a==1 the If part is executed not the else part. I thought each time the function returns two values, "a" and 1 because 1 is the second...
3. ### Recursion in C

Now when I see the code, find that I missed an important point : Even if a function returns 1000 different values the only accepted one is the first. So the 1 returned each time is simply ignored because that's the second returned value by factorial function. Thanks, anyway
4. ### Recursion in C

Look at this code : 27: unsigned int factorial(unsigned int a) 28: { 29: if (a == 1) 30: return 1; 31: else 32: { 33: a *= factorial(a-1); 34: return a; 35: } 36: } The code evaluates fcatorial of "a". The only point I don't get is the return in line 30. When the function is called...