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
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
Science,
5 months ago
History,
5 months ago
Computer Science,
11 months ago
Chemistry,
11 months ago
English,
1 year ago
CBSE BOARD X,
1 year ago