This is basically just to help me understand pointers better, so if you guys can confirm/deny/explain anything it looks like I don't understand properly I would be most appreciative. The examples of using mailboxes, and aunts, and streets, and all that crap is just confusing.
int a = 5; int b = &a; // b will be the memory address of 'a' int *c = a; // c will be the value of 'a' which is 5 int *d = &a; // d will be a pointer to the memory address of 'a' int &e = a; // what would this be? void FunctionA() { int a = 20; FunctionB(&a); // a is now 15? } void FunctionB(int *a) { a = 15; } Thank you guys for any help, I am just trying to improve my understanding beyond all of the crappy metaphor explanations im reading.
eas an alias fora. Any timeeis read, the value ofais returned. Any time you write toe,ais updated.