Understanding pointers [duplicate]

4

I'm trying to learn C ++ from the internet, I understood more or less what pointers are but I do not see a utility, I do not know anything about C ++. I just do not want to go over this subject, I did a test that I think should work, to see the speed of the pointers vs the normal variables.

Because in both tests the speed is practically the same if one uses pointers and the other does not?

    
asked by anonymous 06.07.2015 / 00:55

1 answer

1

There is no difference in speed ...
Pointers point to a value stored in memory ... While variables are pre-defined spaces in memory for values.

Difference is only in utility. If you have no need, you do not need to use only pointers to variables.

    
06.07.2015 / 01:31