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 ▸

Explain how the even parity system works when transmitting ASCII codes. Include a description of the roles of the sending device and the receiving device during transmission.


Explain why it is important to check the email address with JavaScript and again when it reaches the server.


What is 'Virtual Memory', and how does it work?


When a stack is implemented using a 1-D array, adding a valid item can cause an execution error. Explain why an execution error can occur in this situation.