I am trying to read the value of memory address using c++.
For example, how can I read the value contained in "00B12318"?
I have tried:
int value;
00B12318 = &value;
cout << value;
But sadly it doesnt work.
Please help! THank you
:(
I am trying to read the value of memory address using c++.
For example, how can I read the value contained in "00B12318"?
I have tried:
int value;
00B12318 = &value;
cout << value;
But sadly it doesnt work.
Please help! THank you
:(
int *x = new int;
int y;
cout << "X address is: " << x ;
cout << "\n\nY address is: " << &y ;
delete x;
The first method (x) you are reading from a pointer without dereferencing it.
The second method (y) you are using the address operator to return the address of the variable.
It is not working for me,
fatal error LNK1169: one or more multiply defined symbols found
Please help. Thanks. :(
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.