Function

📘 Functions in Programming


🔹 Function

Function is a small job program.


🔹 Types of Functions

  1. Built-in functions (intransic)

  2. User defined functions (extransic)


🔹 Function Separator

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.

Example:

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

Popular posts from this blog

Introduction To HTML

Data Binding Functions

Export GridView to Excel