arguments passing mechanismc supports the


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.

Syntax:

return_type function_name(data_type & parameter) 

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: arguments passing mechanismc supports the
Reference No:- TGS0158513

Expected delivery within 24 Hours