When I use Cheat Engine to inspect the memory of a game I see a particular value at address 0x009FF414. When I try to read that same location with a little C program (see below), I get a runtime error.
Why can Cheat Engine access that address even though my program cannot? What would I need to do in my program to read that memory?
My Program:
#include <stdio.h>
int main(void)
{
int *ptr = 0x009FF414;
printf("%d\n", *ptr);
}