So I created the pointer as per page 66:
int main(int argc, const char * argv[]) {
// insert code here...
int i = 17;
int *addressOfI = &i;
printf("i stores its value at %p\n", &addressOfI);
printf("This function starts at %p\n", main);
return 0;
}
However, when I change the first print function from &i to &addressOfI, I do not get the same storing hex address. Very similar, but not the same.
addressOfI gives me 0x7fff5fbff7a0
i gives me 0x7fff5fbff7ac
BTW, I’m using Xcode 6.3.1