previous | start | next

Reference Parameters (Syntax 5.5 : Constant Reference Parameters)

Syntax 5.5 : Constant Reference Parameters

const type_name& parameter_name
Example:
const Employee& e
Purpose: Define a parameter that is bound to a variable in the function call, to avoid the cost of copying the variable into the parameter variable.


previous | start | next