What is Pass by value and pass by reference in OOPs?

0

If we pass by value..Inside the subroutine if you change the value it will not have effect (means it will not change the value) in the calling place.
If we pass by reference…Inside the subroutine if you change the value it will change in the calling place..Means it will share the same memory..

Leave a Reply

Your email address will not be published.

You may use these <abbr title="HyperText Markup Language">html</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*