In C++, when a parameter is passed by value, what exactly is being passed to the function? 

  • Original value 
  • Memory address 
  • Reference 
  • Copy of the original value
When parameters are passed by value in C++, a copy of the original value is provided to the function. This means the function operates on this copy, and the original data remains unchanged outside the function scope.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *