I'm studing about how programs save data on their memory. So I made a simple program that contains a global double variable :
#include <iostream>
#include <conio.h>
using namespace std;
double b = 512;
int main(){
getch();
return 0;
}
when I want to search for this double variable in memory from any programs that read memory (in my case CheatEngine), I see something unclear.
CheatEngine Finds the 512 in memory :
When I convert it to hex it shows :
And when I browse the location of this variable in memory , It is like :
So I convert 512 from decimal to hex and it is 200, But there is nothing similar 200 in the second picture.
What is 4080000000000000 in the second picture and how it is equal to 512 ?