Difference Between Call By Value and Call By Reference?

Answer Posted / vino

Mostly  call by value and call by reference is differ  from 
copy and modify process..
Copy:
Call by value:
It take difference memory locations  for variables.Duplicate copy of the original parameter is passed.
Call by reference:
It takes Same memoy locations for  variables.Actual copy of the original parameter is passed.
Modify:
Call by value:
No affect on original parameter after modifying the parameter in functions.
Call by reference:
original parameter can be affect afetr modifying the parameter in function..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of delivery class? : abap data dictionary

560


How to write a code in tab control? : abap bdc

620


what is defference between repository and non repository Object?

6674


What are the payroll related Infotypes

1802


What kind of BDC programs are written ?

591






Value table VS check Table.

950


What are the aggregate objects in the dictionary? : abap data dictionary

732


What are the different types of luws. What are they?

617


Differentiate between static and dynamic step loops?

567


What is the use of buffering?

561


Can we access static attribute from instance method

986


What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?

911


What are two different ways to add fields to sap tables?

519


What are the disadvantages of different types of bdc's?

607


Explain the components of selection table?

622