Difference Between Call By Value and Call By Reference?

Answer Posted / ankit sheladiya

If data is passed by value, the data is copied from the variable used in for example main() to a variable used by the function. So if the data passed (that is stored in the function variable) is modified inside the function, the value is only changed in the variable used inside the function. Let’s take a look at a call by value example

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

On ABAP, Did you set up a workflow? Are you familiar with all steps for setting up a workflow?

598


How we format the data before writing a statement in the report?

513


Which transaction code is used executing a report (type 1 program)? : abap data dictionary

643


In se11 -->Tech. settings --> Data class. If I save table as Mater data OR Transaction data, what effect will it has for 'Storage' in Database after activation. or In Database how it will store in both the cases.

2116


Is sap xi intended to replace ale?

583






What is the length of function code at user-command?

757


What is an update type with reference to a match code id?

568


what will happen if called program is not executable ?

1701


What are the function of the transport system and workbench organiser? : abap data dictionary

561


What is the role of ‘refresh’ in internal table?

592


What are your ways to performance optimization?

918


Update types in Call transaction method. What is the difference?

607


singleton class

935


What are the differences between table and structure in data dictionary?

602


How can we create callable modules of program code within one abap/4 program? : abap modularization

608