/* ==================================================================== You need to disable Address space layout randomization (ASLR) setarch $(uname -m) -R /bin/bash a.out ==================================================================== */ #include int main(int argc, char *argv[]) { int i = 1234; int *p = (int *)140737488347884; printf("&i = %ld &p = %ld\n", &i, &p); printf("Value stored at memory location 140737488349476 = %ld\n", *p); }