Difference Between Call By Value and Call By Reference?
Answers were Sorted based on User's Feedback
Answer / abhinav
call by value- passing the value of variable to the function.
call by reference-passing the address of variable to the function.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / neeraj mishra
Call by value:
A copy of actual parameters is passed into formal parameters.
Call by reference:
Reference or address of actual parameters is passed into formal parameters.
To learn more about them with example you can refer below link:
http://www.thecrazyprogrammer.com/2015/12/difference-between-call-by-value-and-call-by-reference-in-c.html
Happy Coding!! :) :)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / amit dhamapurkar
simplest possible method of passing the parameters the
actual parameter are evaluated and their r values are passed
to the subroutine in location determined by the language
implimentation
Is This Answer Correct ? | 48 Yes | 60 No |
What is payroll area
what is search help exit ????
Did you face any problems in Master Data Upload?
How to write a code in tab control? : abap bdc
What are the functional areas, user groups? How does abap query work in relation to these?
Give few names of pooled tables in sap ?
What is search help exit? : sap abap data dictionary
dynamic programming in sap abap
What are text elements in smartforms ?
How many main windows will be there in a page window?
What are the Different Types of tickets in Realtime Scenario ?
WHAT IS DOCUMENTATION?WHY IT IS USED?