value and reference :/

Hi , can you help me to understand this:

" Passing by value and passing by reference "

-what is the difference between them ??

-give me an example when we use : "Passing by value" and when we use :"passing by reference"
try to look at this, it is pretty comprehensible :

passing by value :
http://www.learncpp.com/cpp-tutorial/72-passing-arguments-by-value/

and by reference :
http://www.learncpp.com/cpp-tutorial/73-passing-arguments-by-reference/
thank you
Topic archived. No new replies allowed.