Difference Between Call By Value and Call By Reference?

Answer Posted / ravi s. sharma

In call by value, a copy of value known as(actual argument)
is passed to the function known as(formal argument). Both
values are stored at different locations and scope. The
changes made in a copy(formal argument) does not affect the
original value(actual argument).

In call by reference, a reference/address of variable known
as(actual argument) is passed to the function known
as(formal argument) which is stored in a
pointer/ref.variable. The changes made in a function
(through pointer/ref. variable) affect the original
value(actual argument).

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1 . how do u design technical documentation in abap ? 2 . what u currently devloped in sap abap ?

2552


Where do you use help views?

552


What are the advantages of logical databases?

608


How can we upload a text file having delimiters in to legacy system?

581


What is the bitwise operator in the sap abap?

571






What are the different types of views and their definition?

578


What are the steps to execute session method?

589


What is the difference between open_form and close_form?

610


When is the top-of-page event triggered? : abap data dictionary

787


What are conversion & interface programs in sap?

641


Why are insert and append statement used in sap abap?

658


Can we create a gui status in a program from the object browser?

568


What are the domains and data element?

548


What is bdc? : abap bdc

600


What is Group by in Select statement?

643