ICSE Class 10 Computer Applications
Question 20 of 43
User-Defined Methods — Question 20
Back to all questions 20
Question Question 18
Differentiate between CALL by reference and CALL by value.
| Call by value | Call by reference |
|---|---|
| Actual parameters are copied to formal parameters. | Formal parameters refer to actual parameters. |
| Any changes to formal parameters are not reflected onto the actual parameters. | The changes to formal parameters are reflected onto the actual parameters. |
| All primitive data types are passed using Call by value. | All reference data types like arrays and objects of classes are passed using Call by reference. |
| It is used to keep original data secure and unchanged. | It is used when the original data values need to be modified. |