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

Why do we use abstract class

1207


What is evaluation path, where do we do it and why? : sap abap hr

781


What is the difference between a substructure and an append structure?

830


How is conversion of data types done between abap/4 & db layer?

832


How to create user interfaces for lists?

776






A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

1111


please give the remaining answers.

1958


I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management

1966


What are the types of subroutines? : abap modularization

755


How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.

2009


Filter badi and multiple used badi? Will the sequence matter of the badi implementation in case of multiple used badi?

1476


If i wont like to change the standard print program where i copied standard script to customer namespace,in this case is it possible to retreive the data if u connect the script with standard program.if yes how?if no why? Is it possible to print the logo in first page only,where the form consists of 10 pages.How can u do this? How can u set a table format where it cosists of fields like cust no, custname, amount ...in a script? How do u know that the particular BADI is suitable for the existed report.How do u findout this?When do u opt for BADI OR USEREXIT?did functional people tell u to adopt BADI or USEREXIT? What is the difference between SY-INDEX & SY-TABIX ? I have a report with fields Status,time & date. the contents it consists are Status Time Date AAA 01:20:15 05-06-10 AAA 11:02:32 O3-06-10 AAA 23:11:00 05-06-10 AAA 09:14:46 05-06-10 HOW DO U WRITE A CODE TO DISLAY A ROW WHICH WAS RECENTLY EXECUTED?( for this question it should display AAA 23:11:00 05-06-10 AS Output)

2267


What are the data types of the external layer? : abap data dictionary

1016


What are the differences between transparent tables, pooled tables & cluster tables? : abap data dictionary

926


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

789