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
What are the major steps will you use for tuning?
What are the disadvantages of abap query tool?
What are the differences between primary and secondary indexes?
What is the use of the raising exception?
What is at exit-command:?
Explain what is sap script? What is the purpose of sap script? Difference between sap script and report?
If I forgot some command in sap script e.g.: Suppress zero display – how to do find it?
In SAP Script,How to display a single field(like matnr)at the right end of the form.
How is conversion of data types done between abap/4 & external level? : abap data dictionary
What will you code in start-of-selection & end-of-selection ?
What are the components of sapscript?
What do you mean by cluster tables in sap abap? Also explain what do you mean by table cluster? : abap data dictionary
What do you do when the system crashes in the middle of a BDC batch session?
visibility section for class level and attributes level
Explain what are the different functions used in sap script?