197k views
0 votes
What is the benefits of using pointers​

User Javi Torre
by
5.5k points

1 Answer

2 votes

Answer:

One benefit of pointers is when you use them in function arguments, you don't need to copy large chunks of memory around, and you can also change the state by dereferencing the pointer. For example, you may have a huge struct MyStruct, and you have a function a ().

Step-by-step explanation:

User Kent Fehribach
by
6.7k points