Match the following terms with the numbered definitions give

Match the following terms with the numbered definitions given 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 which are reference parameters?

Solution

Dear Student,

Here is the answer of your Question...

Ans-1:

Argument--------------(3) A variable declared in a function heading.

Parameter-------------(2) A parameter that recieves a copy of the argument\'s value

function call-----------(6) A statement that transfers control to a function.

function prototype-------------(1) A function declaration without a body

function defination------------(4) A function declaration with a body

Local Variable---------------------(8) A varibale declared within a block

Value parameter-----------------(5) A varibale or expression listed in a call to a function.

Reference parameter-------- (7) A parameter that recieves the location of the argument in memory

Ans-2

In the second question the parameter which start with &, are known as reference parameter.

Ex- string &name;

the parameter which start without &, are value parameter.

Ex- int age

Kindly check and verify..Thanks....!!!

 Match the following terms with the numbered definitions given A function declaration without a body. A parameter that receives a copy of the argument\'s value.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site