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
Answered by Aymen Q. Computing tutor

2197 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Which are the parts of a compuer?


Image a graph. In which instances is it more appropriate to use an adjacency list instead of an adjacency matrix?


What is the difference between local and global variables?


Outline the differences between how a compiler and an interpreter works, and explain the advantages and usage of of each [12 marks]


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences