What is difference between call by value and call by reference? tccicomputercoaching.com

Page 1

What is difference between call by value and call by reference? tccicomputercoaching.com Call by Value:1) In this actual copy of arguments is passed to formal arguments. 2) Any changes made are not reflected in the actual arguments. 3) It can only be implemented in C, as C does not support call by reference. 4) Actual arguments remain preserved and no chance of modification accidentally. 5) It works locally.

Call By reference:1) In this location of actual arguments is passed to formal arguments. 2) Any changes made are reflected in the actual arguments. 3) It can only be implemented in C++ and JAVA. 4) Actual arguments will not be preserved. 5) It works globally


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.