Answers

Question and Answer:

  Home  C++ References

⟩ Can you please explain the difference between pass by value and pass by reference?

In pass by value approach, the called function creates another copies of the variables passes as arguments. In this approach, the values of the original variables remain unchanged. However, we come across situations where we need to change the values of the original variables. Then the values may b passed by reference.

 306 views

More Questions for you: