There is probably a really simple answer to this but I just can’t see it.
#include <stdio.h>
int main(void) {
int x = 0;
printf("\n%d\n%d\n",x,&x);
}
Okay, so the printf gives 0 (x) and 2293752 (&x). I am trying to figure out a way to look at any address (&) and see what is already stored there. This is just for experimentation. Any help?
You’ll probably find that examining arbitrary memory addresses will just cause a crash.