Function
Function is a small job program.
Types of Functions-
1.Built-in functions (intransic)
2.User defined functions (extransic)
Function separator- ( )
Terminology-
1. Function definition- When the function is defined.
void function()
{
statements;
}
The function is defined under the class body not inside main body.
2. Function Calling- When the function is called.
function();
The function is called inside the main body.
3. Function Parameters- Parameters are defined in function separator
ex-
void func(parameters)
{
}
Types of Parameters/Arguments-
1. Actual Parameters- When the function is called. they are also called Sender Parameters.
2.Formal Parameters- When the function is defined. They are also called Receiver Parameters.
Comments
Post a Comment