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

What are the uses of secondary indexes?

774


Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?

849


What is a transport?

825


What are the functional modules used in sequence in bdc? : abap bdc

750


Why do we use events and actions in web dynpro?

759






How collect statement is different from append?

731


What happens if a function module runs in an update task? : abap modularization

767


Explain what is step-loop? Explain all the steps?

915


What are the table controls in bdc ? What is the difference between bdc and lsmw ?what is the difference between bdc and rfc ? : abap bdc

760


Explain the advantage of structures?

724


What is the lock object?

768


What is buffering allowed but switched off?

1042


stock transfer from one plant to another plant ? i want the total description.

1789


Normally how many and what files get created when a transaction program is written?

733


Can we call reports and transactions from interactive reporting lists?

829