Accessing variables with memory address
Let's say I have an int at address 0x5FA70. I have another int storing that variable. How do I use that variable to manipulate the data at the memory address stored by that variable?
Code:
/* this is the variable i want to access. it's memory address is
0x5FA70. the kicker is I cannot use this variable in any way to
access it's value, only that memory address */
int a = 645;
/* this variable stores 0x5FA70, the address of a */
int b = 0x5FA70;
Let's say I want to add 1 to a, then I want to assign the value of a to a new int, c. How would I do this without using the variable a in any way and only using it's address? Thanks in advance.