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
Explain the difference between a dialog program and a report?
How to write a code for multiple transactions? : abap bdc
What is the difference between field-group header and other field groups?
Does the table can have multiple foreign keys?
How table control cn be generated using bdc? : abap bdc
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.
What are Delivery classes? What data will you want to transport during client copy?
What is buffering allowed but switched off?
What are the difference between pool tables and transparent tables?
What is the syntex used to call a screen as dialog box (pop up)?
What is human resource information systems (chris)? : sap abap hr
How many detail lists can be created in interactive reporting?
How to call other programs?
What are the types of subroutines? : abap modularization
What are interface/conversion programs in SAP?