+ 7
why we use pointer in c++?
3 Respuestas
+ 10
To point to an address of a variable?
While we may be able to operate solely based on variables, RL implementation of variables may vary in size. When we cannot be sure of how much space/memory to allocate, we use pointers to refer to these variables.
+ 7
Pointers are the variables used to store the address of any variable we r using. They r used to access the value of any variable..... i. e one can use it to show the value contained in the variable itself
- 3
if you have a list of values array of objects and you want to view them in a different sorted order then instead of sorting or moving the actual data just make a list of pointers and sort them. it's like an index in a database. it will take less processing and memory resources.