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
What is the benefit of oop?
What is stream in oop?
what are the ways in which a constructors can be called?
What is advantage of inheritance?
What type of loop is a for loop?
to find out the minimum of two integer number of two different classes using friend function
can inline function declare in private part of class?
What is the significance of classes in oop?
How do you explain polymorphism?
what's the basic's in dot net
How to improve object oriented design skills?
How is class defined?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is overriding in oop?
Where is pseudocode used?