0
References and Pointers
Why is references and pointers usefull? What we can do with their memory address.
2 ответов
+ 4
They allow you to indirectly manipulate the data they are associated with. This allows for better memory management, particularly when working with functions. Pointers are more efficient as c++ does less work when using them than by passing a value by reference or by passing the value itself.
There are also some situations where pointers must be used, such as dynamic memory allocation.
+ 3
Ketan Pal
If somebody wants to see your house, do you take your house with you and show them, or instead point them to the address of your house?