KnowledgeBoat Logo

Computer Applications

State a difference between call by value and call by reference.

User Defined Methods

ICSE 2019

20 Likes

Answer

In call by value, actual parameters are copied to formal parameters. Any changes to formal parameters are not reflected onto the actual parameters. In call by reference, formal parameters refer to actual parameters. The changes to formal parameters are reflected onto the actual parameters.

Answered By

14 Likes


Related Questions