I understand the basic logic of using pointers (returns location), and you can play around with it via int a = 10; int* b = &a; int* c = b;
and have a location point to a reference of a location, thus pointing to a value like above in code.
Question: When is it appropriate to use them?
*Is it appropriate only when managing memory? *Is it appropriate only when you have a huge solution file? *Is there a social norm among C++ programmers when to use it? (I'm sorry if this sounds weird but in our readings the author seems to use them randomly).
I'm studying game programming and we're covering this now. I've taken pointers and references out of the code, and still wound up with the same values and results, so I'm just confused on why this is a useful thing.