Difference Between Call By Value and Call By Reference?

Answer Posted / soumya.tavildar

call by value :
The copy of the argument is passed. e,g., if x and y are arguments and their corresponding values are say 100 and 200.
c=max(x,y);
max(inta,intb)

call by referance :
it is sending the address of variables to the called function.

Is This Answer Correct ?    89 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the collect statement? How is it different from append?

738


What are the requirements a dialog program must fulfill?

821


What are the types of parameters in the function modules?

847


What is buffering allowed but switched off?

1039


how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer

2006






How many types of views are there ?

832


I just wanted to know that when I am recruiting somebody, I am generating his personal no also. Then I want to give him training also. Now I just want to create 2 scenarios to clear my doubts? : sap abap hr

750


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subarc after perform?

769


hi experts,,, what is meant by documentation? test casr preparation? documentation and preparation and Tcode for this? quality and releasing? test case scenario?

1939


How will you insert record in a sorted table

1033


Can i Have Some Examples on Enhancements.

2185


Explain get cursor field?

866


Explain what is sap script?

820


MY DOMAIN IS SAP-ABAP COMPARE TO WEBDYNPRO AND CRM-TECHNICAL WHICH IS BEST?

2659


data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.

2067