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
Why do we use abstract class
What is evaluation path, where do we do it and why? : sap abap hr
What is the difference between a substructure and an append structure?
How is conversion of data types done between abap/4 & db layer?
How to create user interfaces for lists?
A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?
please give the remaining answers.
I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management
What are the types of subroutines? : abap modularization
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
Filter badi and multiple used badi? Will the sequence matter of the badi implementation in case of multiple used badi?
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)
What are the data types of the external layer? : abap data dictionary
What are the differences between transparent tables, pooled tables & cluster tables? : abap data dictionary
Can we create a gui status in a program from the object browser?