Question: difference between formal parameters and actual parameters in c++

title: Parameter (computer programming)
text: The terms parameter and argument may have different meanings in different programming languages . Sometimes they are used interchangeably , and the context is used to distinguish the meaning . The term parameter ( sometimes called formal parameter ) is often used to refer to the variable as found in the function definition , while argument ( sometimes called actual parameter ) refers to the actual input supplied at function call . For example , if one defines a function as def f ( x ) : ... , then x is the parameter , and if it is called by a = ... ; f ( a ) then a is the argument . A parameter is an ( unbound ) variable , while the argument can be a value or variable or more complex expression involving values and variables . In case of call by value , what is passed to the function is the value of the argument -- for example , f ( 2 ) and a = 2 ; f ( a ) are equivalent calls -- while in call by reference , with a variable as argument , what is passed is a reference to that variable - even though the syntax for the function call could stay the same . The specification for pass - by - reference or pass - by - value would be made in the function declaration and / or definition . 

Answer: answer: The term parameter (sometimes called formal parameter) is often used to refer to the variable as found in the function definition, while argument (sometimes called actual parameter) refers to the actual input supplied at function call.   A parameter is an (unbound) variable, while the argument can be a value or variable or more complex expression involving values and variables.
answer: The formal parameter is often used to refer to the variable as found in the function definition , while actual parameter refers to the actual input supplied at function call. The formal parameter is an (unbound) variable, while the actual parameter can be a value or variable or more complex expression involving values and variables.