Me need help wit pointers, me dum dum
Can anyone give me a hand with theory behind pointers? I just don't understand them for the life of me. What is the purpose of them, what use do they have?
The only thing I could come up with while reading tutorials and trying to understand them was that they give you an instance of a variable without actually updating the variable... lol thats so whacked, I basically mean this..
You have Pointer A and Variable B. Variable B is set at 30, so Pointer A is set at 30. When you change Variable B to say, 29, Pointer A automatically adjusts itself to 29 as well. But I don't see much reason to that either, whats the point? You could just use Variable B and check that, rather then using a pointer.
So I'm totally lost on what they are, can you please help me?
Thanks a tonne,