I have this memory layout:
0018FBD2 ?? ?? ?? ?? ?? ?? ?? ??
0018FBDA AA AA AA AA BB BB BB BB <- stuff I'm interested in
0018FBE2 ?? ?? ?? ?? ?? ?? ?? ??
In C, I would do:
int* my_array = (int*) 0x18FBDA;
my_array[0];
However, I use C ++, and I would like to declare a link:
int (&my_array)[2] = (???) 0x18FBDA;
To use this:
my_array[0];
But, as you can see, I do not know how to do this:
int (&my_array)[2] = (???) 0x18FBDA;
How should I do it? Is it possible?
source
share