May 2012
Intermediate to advanced
679 pages
16h 56m
English
Functions normally work in terms of arguments that are called parameters. The parameters used in function declaration (and definition) are called formal parameters. The parameters used while calling a function are called actual parameter. Actual parameters can be a variable or a constant or an expression.
In general, term argument and parameter are used synonymously. Critically speaking, the parameters when passed to functions (for execution) are called arguments. Consider function sin (x). Here x is the parameter. The function calculates the value of sine of x. In this sense, parameter x is an input to the function. In C++, parameters can be passed in two different ways:
Read now
Unlock full access