i want to show you about How Recursion Works in C.
Recursion:
- Function that calls itself as recursive function
- Process of repeating the items in a similar way
Advantage and Disadvantage of Recursion:
Advantage: More elegant and makes some problem to be one problem
Disadvantage: Hard to find the logic
I will give you an example (you can see the pict):
That's the How Recursion Works in C. Hope this will help you. Thanks! :D
nb: for source/additional knowledge:
- http://www.programiz.com/c-programming/c-recursion
- http://www.tutorialspoint.com/cprogramming/c_recursion.htm
- http://www.cprogramming.com/tutorial/c/lesson16.html
Tidak ada komentar:
Posting Komentar