Function in C
Functions
Function types�
Function Syntax�
{
body of the function
}
Function prototype
Categorization based on arguments and return value
Advantages of Functions in C�
Categorization based on arguments and return value
call by Value�
call by Reference�
Recursive function
Recursive function
Base Case:
Recursive Case:
Call Stack:
Example 2: Fibonacci using Recursion
Example 3: Sum of first n numbers�
Storage classes
Storage classes
The auto Storage Class
Example of auto Storage Class�
Properties of auto Variables
The register Storage Class
The register Storage Class
The static Storage Class�
The static Storage Class
�The extern Storage Class��
The extern Storage Class