[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CRecursion
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CRecursion
(C) Recursion
A function calling itself.Example
int fibonacci(int n)
{
if (1==n || 2==n)
{
return 1;
}
else
{
return fibonacci(n-2) + fibonacci(n-1);
}
}
'Recursion' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
