Difference Between Actual and Formal Parameters

Difference between Formal and Actual parameter in Python

The Key Difference Between Actual and Formal Parameters is that the parameters used in the function call/invoke are called Actual parameters Whereas the parameters used in the header of the function definition are called Formal Parameters.

Actual and Formal Parameters Comparison
Actual and Formal Parameters Comparison

Comparison Chart

Actual Parameters Formal Parameters
Actual Parameters used in the function call. Formal Parameters used in the function header.
Data type not required. Data type define must be required.
Parameters can be constant values or variable names. Parameters can be handle as local variables.
Ex:- add(a,b);

  • A and B are Actual parameters
Ex:- int add(int a,int b)
{
//All function code
}

  • A and B are Formal parameters

More Difference