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 |
what is the process of creating quotation using BAPIs.
i have a requirement.there are 2 fields and one check box on my selection screen.initially first field sud be mandatory, when we click on check box the first field which was mandatory sud now be optional and second field sud be mandatory?please provide me the solution asap.Thank you
What happens if a function module runs in an update task?
Events in Reporting. Which events we can ignore while coding.
How we can assign the value of field in select-options to the text-field in dialog module?
What are the data types of the abap/4 layer? : abap data dictionary
i have a doubt ,what is the difference between the workarea and headerline . plz tell me .
What is lock mechanism? How do we create lock objects in abap?
what is the field to be used in field catalog of an ALV report to hide the relevant column in the list?
What is the difference between LSMW and CATT?
What are the various types of the Internal tables used?
As an ABAP developer, how can we check after we release our object as to where has it reached(i.e. testing client box ,production client box etc)? In case it is not possible please let me know the same.