Computer Science, asked by deonaugustyn, 10 months ago

1.5 Which of the following is not true about passing a parameter to a program ByVal:
A. A copy of the variable is made for the procedure.
B. A function cannot pass parameters by value.
C. A procedure can pass parameters by value.
D. None of the above.
My answer would be B. Thoughts?

Answers

Answered by mariospartan
2

A copy of variable is made for the procedure.

Explanation:

There 2 modes whereby you can "pass by value" and "pass by reference".

Pass by value: A copy of the value will be passed to the function. Any change made to the parameter will not affect the calling portion.

Pass by reference: The address of the variable is passed to the function. Hence, any change made to the parameter will affect the calling portion too.

Your guess is wrong since a function accepts parameters by value and can pass parameters by value.

To Learn more:

https://brainly.in/question/2081284

https://brainly.in/question/9026170

Similar questions