In C++, passing large structures or classes to functions is typically done by _______ to avoid expensive copy operations. 

  • pointers 
  • value 
  • integers 
  • operators
Passing large structures or classes by value results in copy operations, which can be expensive in terms of performance. To mitigate this, C++ developers often pass large data structures using pointers or references, allowing the function to access the original data without copying.
Add your answer
Loading...

Leave a comment

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