Arguments Passing Mechanism
C++ supports the following argument passing mechanisms:
i). Pass by value: A copy of the arguments value is made and passed to the called function.
ii). Pass by reference: This mechanism allows the actual variable rather than a copy to be passed to a
function. One advantage is that it can allow more than one value to be derived from the function, unlike pass by value that returns only one value from the called function.
return_type function_name(data_type & parameter)