Normally, we declare variables like this in C++:
int exampleInteger;
What if I have a pointer to the address of an integer? Can I declare an integer located at a certain memory address?
int* exampleIntegerPtr = (int*) 0x457FB;
int exampleInteger = *exampleIntegerPtr;
Unfortunately, exampleInteger in the second example isn't like exampleInteger in the first example. The second example creates a new variable that has the same value as the integer located at exampleIntegerPtr. Is it possible to somehow grab the actual integer located at exampleIntegerPtr?