what is advantages and disadvantages in call by value and
call by reference
Answers were Sorted based on User's Feedback
Answer / shashank and nishant
In call by reference the the object will get change.
In calle by value it won't.
call by reference passes the address of the argument into
the required subroutine, thenh when it is altered in the
subroutine, its altered value will overwrite the original
argument value.
call by value only passes the value to the subroutine(i.e.
the subfunction defined)and this does not overwrite the
argument value.
Is This Answer Correct ? | 53 Yes | 13 No |
Answer / nirmalafredrick
You need to say simply
Call by value allows duplication
Call by referance No Duplication
May be if they ask for example you may say what shashank
had written
Is This Answer Correct ? | 27 Yes | 7 No |
Answer / rishav
It copies the value of actual parameters into formal parameters.
The changes are not reflected back to the original value.
It creates its own copy of argument values and then uses them.
Passing by values is useful when the original values are not to be changed.
Is This Answer Correct ? | 10 Yes | 6 No |
Answer / mukesh
In call by value method-The copy of variables are passed into the function and it does not overwrite the original values declared in main function. It consumes much space than call by reference method
In call by reference method- The address of variables are passed into the function and it will overwrite the original values declared in main function. It consumes less space the call by value method.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / shivam sharma
when formal arguments are ordinary variables then it is called function call by passing value.
and when formal arguments are pointer variables then it is called function call by passing address.
when formal arguments are reference variable then it is called function call by passing reference.
most of the times people considers call by reference and call by address is same but it's not.it is unique in different context.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / deepak gupta
call by refernce for retwrning more then one valve.
Is This Answer Correct ? | 3 Yes | 5 No |
Answer / bala
call by value ----- represent values
call by value ----- for represent the address
Is This Answer Correct ? | 19 Yes | 24 No |
Answer / mohamed
In call by value the the object will get change.
In calle by reference it won't.
Is This Answer Correct ? | 5 Yes | 35 No |
CAN ANY ONE TELL ME What is the use of fallowing structures 1)BDCDATA 2)BDCMSGCOLL
What is the diff between database view and maintenance view?
What do you like best about working for, in this company?
what is Composite key in table creation? what is the use?
wat is a field symbol?
how to edit text in script?and how to migrate scripts into smart forms?
THANKS ALL. i CLEARED THE INTERVIEW OF INFOSYS BASED ON THIS QUESTION SET. IT REALLY WORKS. LONG LIVE ALLINTERVIEW.COM
How BAPI is Different from call Transaction/Session
What are the aggregate objects in the data dictionary? : abap data dictionary
what do u mean by occurs 0
Suppose u r using FOR ALL ENTRIES. What happens when there is no data in the itab which is using all the entries?
In ALV, i have to display list in which some records has to display. starting of each record it should display checkox. and we have to display push button delete. when user select chekc box and press delete button, that entry should delete. please tell me how to do it?