A function is also called as module. It is
used to perform some specific task.
There are two types of function: -
a.
Pre-defined function: - Those functions
which are already created by developers are called as pre-defined function.
b.
User defined function: - Those functions which are created
and managed by user are called as user defined function.
Types
of user defined function
1.
No return and no formal argument
2.
Return but no formal argument
3.
No return but formal argument
4.
Return with formal argument
Types
of calling function: -
There are two types of calling function
1.
Call by value
2.
Call by reference
Function
and Array
Recursion
No comments:
Post a Comment