C++ References Question: Download Questions PDF
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.
Download C++ References Interview Questions And Answers PDF