Possible Duplicate:
Is it better in C++ to pass by value or pass by constant reference?
When to pass by reference and when to pass by pointer in C++?
I am fairly new to c and c++ and I have the following question with regards to passing parameters to functions and thought it best to ask here and come straight to the source of the knowledge from the gurus.
When should I pass parameters by value and when sould they be passed by reference? And what is the most commonly used method in the real world?
Thanks in advance.