Friday 1 July 2016

c++ - Why use pointers?

I know this is a really basic question, but I've just started with some basic C++ programming after coding a few projects with high-level languages.



Basically I have three questions:





  1. Why use pointers over normal variables?

  2. When and where should I use pointers?

  3. How do you use pointers with arrays?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...