A function declaration without a body A parameter that recei

A function declaration without a body. A parameter that receives a copy of the argument\'s value. A variable declared in a function heading. A function declaration with a body. A variable or expression listed in a call to a function. A statement that transfers control to a function. A parameter that receives the location of the argument in memory. A variable declared within a block. In the following function heading, which parameters are value parameters and which are reference parameters? void ExamPrep(string& name, int age, float& salary, char level)

Solution

Name is Reference Parameter as its referenced using & operator

Age is Value Parameter

Salary is Reference Parameter as its referenced using & operator

Char is Value Parameter

 A function declaration without a body. A parameter that receives a copy of the argument\'s value. A variable declared in a function heading. A function declara

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site