What is the difference between pass by reference and pass by
value?
Answer Posted / manila
Pass By Value:
1.It passes the actual value of parameter from the function
call.
2.Value of the parameter variable in calling functions
remains unchanged.
3.copy of the variable of actual parameter are made and
transfer to the formal parameter.
call By Reference:
1.the address of the actual parameter has to be transfered
2.the formal parameter in the function decleretion must of
pointer type.
3.Any changes in the formal parameter can change the value
of actual patameter.
| Is This Answer Correct ? | 30 Yes | 11 No |
Post New Answer View All Answers
Can we have inheritance without polymorphism?
How oops is better than procedural?
How long to learn object oriented programming?
What is the real time example of inheritance?
program for insertion ,deletion,sorting in double link list
What does oop mean in snapchat?
What is polymorphism programming?
What is polymorphism what are the different types of polymorphism?
What is an interface in oop?
What is inheritance and how many types of inheritance?
What is polymorphism and types?
What is the difference between encapsulation and polymorphism?
Prepare me a program for the animation of train
Why is static class not inherited?
what is graphics