C language
a) List two reasons fo Show transcribed image text a) List two reasons fo
Answer
a) in the call by value method, the value of the actualparameters is copied into the formal parameters. so actualparameters and formal parameters get different memorylocations.
reasons to implement call by value method:
- when we don’t want to make changes in the actual parameters.for example: additon and subtraction of two numbers
- when we want to get the copy of the object(like a copy of intvariable), rather than the object itself. we use call by valuemethod.
- to prevent the private data from
OROR