Functions
Functions
9.
10.Fibonacci Series Program in C Using Recursion
11. WAP in C for recursive way of calling factorial function. Explain with proper diagram the
various stack calls involved.
12. Which way is more efficient- recursive or iterative
Recursive solutions often have higher overhead due to the repeated function calls,
memory allocation for the call stack, and potential function call stack limitations.
Recursive solutions may also lead to redundant computations or repeated work,
especially if the same subproblems are encountered multiple times.
Iterative solutions, on the other hand, usually have a more direct control flow,
avoiding the overhead of function calls and the associated stack operations. They can
often be optimized to use less memory and exhibit better performance
characteristics.