+ 3
Why do we use pointers in c++???
2 Respuestas
+ 2
consider the variable as a person
and his address as a pointer .
Now would it be easier to or faster to find a person in this world by his/her name OR if you had his/her residence address
pointers basically make your execution faster (as per my understanding)
Also you can permanently alter the value of the variable .
pls do correct me if you think i m wrong
+ 1
there are several reasons
first is to have dynamic memory allocation of variables so that we use memory that is required only
second is to access strings
third it makes all the array operation more easier
we can make several function. using one code in ptrs