In a C program that manipulates a large dataset, you observe that the performance is significantly reduced when passing data between functions. How could pointers be used to improve the performance?

  • Pointers can be used to create additional datasets.
  • Pointers can be used to pass data by reference.
  • Pointers can be used to pass data by value.
  • Pointers can't improve performance in this scenario.
Pointers can be used to pass data by reference, which avoids the overhead of copying large datasets, improving performance in data manipulation tasks.
Add your answer
Loading...

Leave a comment

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