English, asked by kary9624, 10 months ago

Difference between formal and actual parameters

Answers

Answered by alishaabraham
3

heyyyy mate.......

The major difference between actual and formal parameters

Actual Parameters

The parameters used in the function call are called actual parameters. These are the actual values that are passed to the function. The actual parameters may be in the form of constant values or variables. The data types of actual parameters must match with the corresponding data types of formal parameters (variables) in the function definition.

They are used in the function call

They are actual values that are passed to the function definition through the function call.

They can be constant values or variable names (such as local or global).

Formal Parameters

The parameters used in the header of function definition are called formal parameters of the function. These parameters are used to receive values from the calling function.

They are used in the function header.

They are used to receive the values that are passed to the function through function call.

They are treated as local variables of a function in which they are used in the function header.

hope it helps.......

plzzz mark as brainliest.......

Similar questions