In a computer program, a parameter may be passed to a procedure by value. Explain how this method works.

Parameters are variables sent to procedures so that the procedures are able to use them. There are two main ways of passing parameters, one of which is by value: Passing a parameter by value is where a copy of the variable you want to send is made, and sent to the procedure as a new variable. This means that any changes made to this new variable within the procedure will not affect the original variable.

AQ

Related Computing A Level answers

All answers ▸

What is an Algorithm?


What is the range of denary numbers that can be represented using 8-bit two’s complement binary integers?


Project Euler Question 3: What is the largest prime factor of the number 600851475143?


Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.