Function Part Two New
Function Part Two New
➢ Variables are declared within function. ➢ Variables are declared outside function.
➢ The scope of variable is within the function. ➢ The scope of variable is throughout the program
➢ The life-time of the variable is the control that ➢ The life-time of the variable is the program’s execution
remains within the function in which the variable is comes to the end.
defined.
➢ The optional keyword auto can be used to declare. ➢ The optional keyword extern can be used to declare.
With the help of these two conditions, we can write the recursive
program. Let’s implement these two steps in program.
fibo(8)
fibo(6) fibo(7)