Example Of Parameter
Formal Parameters Vs Actual
27 What is the difference between a local variable and a formal parameter in the body of a function? There is only one difference: A local variable has no value when the computer starts executing the body of the function. A formal parameter always has a value, which must be passed to it by the caller as an actual parameter. Formal parameters are those that appear in a function's prototype, using the parameter names provided by the function implementation (which may differ from the names used in the function. Has the (formal) parameter a. When the function is called at run-time, there is a value that a represents. This is the argument (actual parameter): f( 5 ) Here 5 is the argument (actual parameter). So the call maps the argument/actual parameter to the formal parameter. In C in some situations you can pass a variable number of arguments to a.