Results for: recursion

What is recursive funcation?

Read the part in your programming manual/text book about recursion. The short answer while easy does not tell you anything about the power or dangers of recursion. It is the power and dangers of recursion that is important because once… Full Answer

Write a example of recursion?

Following function calculates factorial of a number using recursion. unsigned int factorial(unsigned int a) { if (a == 1) return 1; else { a *= factorial(a-1); return a; } } recursion n. see recursion. Full Answer